-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add edit
context to patterns REST controllers
#40259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for doing it.
In WordPress core I fight with some failing unit tests after similar changes. We should learn if that's the case here as well once CI jobs finish.
I don't think we need to backport anything back to WP core from this PR - removed the label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
6e43075
to
09fb87d
Compare
09fb87d
to
0a4d988
Compare
We need to add
edit
context to the patterns REST controllers as it has changed in the backport to core: WordPress/wordpress-develop#2567.This also adds a check about the theme's
patterns
directory being readable and changeserrors
to_doing_it_wrong
for pattern registration from this theme's directory(patterns).