-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
WP_REST_Pattern_Directory_Controller::get_items
doesn't support array arguments
#40900
WP_REST_Pattern_Directory_Controller::get_items
doesn't support array arguments
#40900
Conversation
WP_REST_Pattern_Directory_Controller::get_items
doesn't support array arguments
Can this be closed? |
Excuse me, I'm not sure I understand why this PR should be closed. |
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.
This looks good to me, and the core team has already reviewed the code.
Thanks, @anton-vlasenko.
What?
This PR aims to backport changes from WordPress/wordpress-develop#2591 and WordPress/wordpress-develop#2625 back to Gutenberg.
Fixes #40824.
Why?
This is needed to keep Core and Gutenberg as compatible as possible.
Testing Instructions
Replace
with the actual credentials.
Replace
with the actual URL of your instance.
5. Note the response. It should contain 2 patterns.
6. Send a GET request again, but this time replace the slug parameter
with some non-existent pattern. E.g.: