From ca9b189085c42f7f208fc174c20cc1fce81c69df Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 3 Feb 2022 09:03:04 +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. Built from https://develop.svn.wordpress.org/trunk@52668 git-svn-id: http://core.svn.wordpress.org/trunk@52257 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 9f02fff09d..5377f4eaee 100644 --- a/wp-includes/post.php +++ b/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, diff --git a/wp-includes/version.php b/wp-includes/version.php index d6c3135171..29bba841e1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52664'; +$wp_version = '6.0-alpha-52668'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.