From 5932a68ba6cd741bc3a44d247cbd02aafb6a8504 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 10 Nov 2021 14:01:59 +0000 Subject: [PATCH] Posts, Post Types: Mark the `wp_global_styles` post type as `_builtin`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All native or “built-in” post types should be marked as such. Follow up to [52041]. See #54336. Built from https://develop.svn.wordpress.org/trunk@52108 git-svn-id: http://core.svn.wordpress.org/trunk@51700 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index b58b7d72d4..6e7870ba5e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -452,6 +452,7 @@ function create_initial_post_types() { 'label' => __( 'Global Styles' ), 'description' => 'CPT to store user design tokens', 'public' => false, + '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 'show_ui' => false, 'show_in_rest' => false, 'rewrite' => false, diff --git a/wp-includes/version.php b/wp-includes/version.php index 2681ee3622..16c91908c9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52107'; +$wp_version = '5.9-alpha-52108'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.