From 74eec0c1804dc687831a6df061c3747c66f0ebc6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 May 2021 22:29:05 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index e184298410..686adcfc65 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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', diff --git a/wp-includes/version.php b/wp-includes/version.php index 2e2ce981f5..2348ba3d0e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.