Block Editor: Declare the wp_template post type as built-in.

Remove redundant `show_in_admin_bar` property, which defaults to the value of `show_in_menu`.

Follow-up to [51003].

See #53176.
Built from https://develop.svn.wordpress.org/trunk@51014


git-svn-id: http://core.svn.wordpress.org/trunk@50623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-05-25 22:29:05 +00:00
parent 3c3a18a957
commit 74eec0c180
2 changed files with 2 additions and 2 deletions

View File

@ -336,10 +336,10 @@ function create_initial_post_types() {
),
'description' => __( 'Templates to include in your theme.' ),
'public' => false,
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
'has_archive' => false,
'show_ui' => false,
'show_in_menu' => false,
'show_in_admin_bar' => false,
'show_in_rest' => true,
'rewrite' => false,
'rest_base' => 'templates',

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51013';
$wp_version = '5.8-alpha-51014';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.