From 14e20f72b568cfb5a85f57c77eaa538c17a5f302 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 3 Feb 2022 09:01:10 +0000 Subject: [PATCH] Editor: Remove standard post type UI for templates and template parts. In [52158] the standard post type UI was added back for templates and template parts, because these features had been temporarily removed from the site editor in the rush to get 5.9 ready for December. Since 5.9 these features were properly added back to the site editor, the `show_ui` values for these post types should be returned back to `false`. Follow-up to [52158]. Props manfcarlo, audrasjb. Fixes #54908. git-svn-id: https://develop.svn.wordpress.org/trunk@52668 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9f02fff09d..5377f4eaee 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -356,7 +356,7 @@ function create_initial_post_types() { 'public' => false, '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 'has_archive' => false, - 'show_ui' => wp_is_block_theme(), + 'show_ui' => false, 'show_in_menu' => false, 'show_in_rest' => true, 'rewrite' => false, @@ -416,7 +416,7 @@ function create_initial_post_types() { 'public' => false, '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 'has_archive' => false, - 'show_ui' => wp_is_block_theme(), + 'show_ui' => false, 'show_in_menu' => false, 'show_in_rest' => true, 'rewrite' => false,