Skip to content

Commit

Permalink
Taxonomy: Set "public" to "false" for user pattern categories.
Browse files Browse the repository at this point in the history
Changes the `'wp_pattern_category'` taxonomy's `'public'` argument to `false`.

Follow-up to [56642].

Props vrajadas, glendaviesnz, hellofromTonya, ramonopoly.
Fixes #59569.

git-svn-id: https://develop.svn.wordpress.org/trunk@57044 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
hellofromtonya committed Nov 1, 2023
1 parent 01c842a commit f6905eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion tests/qunit/fixtures/wp-api-generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -9816,7 +9816,6 @@ mockedApiResponse.Schema = {
"page",
"category",
"post_tag",
"wp_pattern_category",
"any"
],
"type": "string"
Expand Down

0 comments on commit f6905eb

Please sign in to comment.