[wp-trac] [WordPress Trac] #40027: Tags and Categories should have a "slugs" parameter for batch fetching
WordPress Trac
noreply at wordpress.org
Mon Mar 20 12:36:51 UTC 2017
#40027: Tags and Categories should have a "slugs" parameter for batch fetching
-------------------------------------------------+-------------------------
Reporter: wonderboymusic | Owner: jnylen0
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.7.4
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by jnylen0):
Replying to [comment:13 curdin]:
> This may be a question for another day but in https://github.com/WP-API
/WP-API/issues/2065 there is discussion around posts and users also having
slug filters. Should these also be amended to receive arrays?
The posts endpoint already supports filtering by multiple slugs, see
#38579. If the users endpoint doesn't, then yes, we should add that too.
Want to create a separate ticket for that?
I would like to see one of the new `test_get_items_slug_array_arg` tests
changed to `test_get_items_slug_csv_arg` with the slugs passed as a comma-
separated string like `taco,burrito,enchilada`. Otherwise
[attachment:40027.3.diff] looks good to me and I will test and commit it
later this week.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40027#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list