Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change wp_pattern_category public param to false #5604

Conversation

glendaviesnz
Copy link

@glendaviesnz glendaviesnz commented Nov 1, 2023

What?

Sets the pattern categories taxonomy public param to false instead of true

Why?

It was suggested here that this would be a better setting for this taxonomy as it only needs to be accessed in admin, not the frontend.

Trac ticket: https://core.trac.wordpress.org/ticket/59569

Testing Instructions

Log in as Admin, Editor, and Author users and make sure that each of these can add new and existing categories to patterns in the post editor and the site editor patterns library.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@ramonjd
Copy link
Member

ramonjd commented Nov 1, 2023

I think the REST API fixtures need to be regenerated.

Running the unit test WP_Test_REST_Schema_Initialization should do it I think.

npm run test:php -- --filter WP_Test_REST_Schema_Initialization

@hellofromtonya
Copy link
Contributor

hellofromtonya commented Nov 1, 2023

Hmm, the CI jobs are failing. Pulling it down locally to have a peek.

Copy link
Contributor

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for commit 👍 Thank you!

@hellofromtonya
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants