[wp-trac] [WordPress Trac] #40027: Tags and Categories should have a "slugs" parameter for batch fetching
WordPress Trac
noreply at wordpress.org
Fri Mar 3 20:08:38 UTC 2017
#40027: Tags and Categories should have a "slugs" parameter for batch fetching
----------------------------+-----------------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Keywords: needs-patch
Focuses: |
----------------------------+-----------------------------
I have 8 categories but I want to query only 3:
1 taco
2 burrito
3 enchilada
`/categories?slug=taco` only returns one item because there is no batch
slug mechanism
`/categories?include[]=1&include[]=2&include[]=3` returns all 3
What I want:
`/categories?slugs[]=taco&slugs[]=burrito&slugs[]=enchilada`
The endpoints, by default, are way too slow to effectively be used with
serial HTTP. The batching parameters are essential.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40027>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list