From 46822ca5003694f82b92921c91a2010b9b9a1dd9 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Wed, 1 Nov 2023 15:03:01 +0000 Subject: [PATCH] Taxonomy: Set "public" to "false" for user pattern categories. Changes the `'wp_pattern_category'` taxonomy's `'public'` argument to `false`. Follow-up to [56642]. Reviewed by azaozz, mikeschroder. Merges [57044] to the 6.4 branch. Props vrajadas, glendaviesnz, hellofromTonya, ramonopoly. Fixes #59569. git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57045 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 2 +- tests/qunit/fixtures/wp-api-generated.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index f0e3be17d3..59ec5345fe 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -227,7 +227,7 @@ function create_initial_taxonomies() { 'wp_pattern_category', array( 'wp_block' ), array( - 'public' => true, + 'public' => false, 'publicly_queryable' => false, 'hierarchical' => false, 'labels' => array( diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index d212facf26..ef8e53d4bb 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -9816,7 +9816,6 @@ mockedApiResponse.Schema = { "page", "category", "post_tag", - "wp_pattern_category", "any" ], "type": "string"