[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:45: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:  Future Release
Component:  REST API        |     Version:  4.7
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+-----------------------------
Changes (by kadamwhite):

 * milestone:  Awaiting Review => Future Release


Comment:

 From a design standpoint we've tried to make any list-style query
 parameter (include, exclude, categories, etc) behave the same... in this
 regard I agree that "slug" is the odd one out, because it is a filtering
 query that returns an array, but does not accept multiple values. I'm in
 favor of the change, as the benefit to clients is significant and the
 query overhead within WP should be significantly less of a burden than the
 HTTP latency or query overhead of making multiple requests in parallel or
 sequence

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40027#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list