diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/class-wp-post-type.php --- a/wp/wp-includes/class-wp-post-type.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/class-wp-post-type.php Fri Sep 05 18:52:52 2025 +0200 @@ -114,6 +114,16 @@ public $publicly_queryable = null; /** + * Whether this post type is embeddable. + * + * Default is the value of $public. + * + * @since 6.8.0 + * @var bool $embeddable + */ + public $embeddable = null; + + /** * Whether to generate and allow a UI for managing this post type in the admin. * * Default is the value of $public. @@ -521,6 +531,7 @@ 'hierarchical' => false, 'exclude_from_search' => null, 'publicly_queryable' => null, + 'embeddable' => null, 'show_ui' => null, 'show_in_menu' => null, 'show_in_nav_menus' => null, @@ -565,6 +576,11 @@ $args['show_ui'] = $args['public']; } + // If not set, default to the setting for 'public'. + if ( null === $args['embeddable'] ) { + $args['embeddable'] = $args['public']; + } + // If not set, default rest_namespace to wp/v2 if show_in_rest is true. if ( false === $args['rest_namespace'] && ! empty( $args['show_in_rest'] ) ) { $args['rest_namespace'] = 'wp/v2'; @@ -973,8 +989,8 @@ self::$default_labels = array( 'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ), 'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ), - 'add_new' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), - 'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), + 'add_new' => array( __( 'Add' ), __( 'Add' ) ), + 'add_new_item' => array( __( 'Add Post' ), __( 'Add Page' ) ), 'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ), 'new_item' => array( __( 'New Post' ), __( 'New Page' ) ), 'view_item' => array( __( 'View Post' ), __( 'View Page' ) ),