-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/wp/v2/pattern-directory/patterns endpoint: slug parameter has no effect on the response
#2625
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
Closed
anton-vlasenko
wants to merge
21
commits into
WordPress:trunk
from
anton-vlasenko:fix/directory-controller-caching-issues
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7571960
Fix a bug in the WP_REST_Pattern_Directory_Controller:get_items.
anton-vlasenko f06d3d0
Update ticket reference.
anton-vlasenko b504030
Fix code style.
anton-vlasenko b1598ab
Add `slug` to the collection parameters. Previously, it was missing.
anton-vlasenko e284e1e
Improve PHPDOC blocks.
anton-vlasenko 7fb829d
Update wp-api-generated.js schema.
anton-vlasenko 07aa848
Update wp-api-generated.js schema.
anton-vlasenko fd1642d
Update wp-api-generated.js schema.
anton-vlasenko 5c9a336
Update comment.
anton-vlasenko 5e923bc
"Slug" must be of type array.
anton-vlasenko c2122fb
Change the scope of the WP_REST_Pattern_Directory_Controller::get_tra…
anton-vlasenko 005de4a
Replace array_key_exist with isset because $query_args['slug'] isn't …
anton-vlasenko 0a2c2eb
Pass $query_args['slugs'] through wp_parse_list to ensure that it is …
anton-vlasenko 7d1c512
Refactor WP_REST_Pattern_Directory_Controller_Test.
anton-vlasenko 1257482
Refactor the test to use the static $controller property.
anton-vlasenko 2c08eea
Use serialize instead of implode because transient keys must depend o…
anton-vlasenko 0411a81
Improve WP_REST_Pattern_Directory_Controller_Test::test_transient_key…
anton-vlasenko 5653f25
Improve WP_REST_Pattern_Directory_Controller_Test::test_transient_key…
anton-vlasenko 0879fe0
Update the test per @costdev 's suggestion.
anton-vlasenko 8ec23a0
Update the test per @costdev 's suggestion.
anton-vlasenko 1d8f893
Micro-optimisations per @hellofromtonya 's suggestion here: https://g…
anton-vlasenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change the scope of the WP_REST_Pattern_Directory_Controller::get_tra…
…nsient_key method as it would be helpful to make it available to child classes.
- Loading branch information
commit c2122fb148d7257f6cbf254a94de6711871fac60
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.