From 304715ae995d4d76c85f890dc37bb765d5ae6d8f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 May 2021 22:27:20 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@51014 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index e184298410..686adcfc65 100644 --- a/src/wp-includes/post.php +++ b/src/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',