From 0a34910828b31af5faf668c62b0bde7b4101a20f Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 10 Nov 2021 14:00:07 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52108 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index b58b7d72d4..6e7870ba5e 100644 --- a/src/wp-includes/post.php +++ b/src/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,