[wp-trac] [WordPress Trac] #38579: REST API: Allow listing posts that match any of a set of slugs rather than just one

WordPress Trac noreply at wordpress.org
Wed Nov 2 03:57:45 UTC 2016


#38579: REST API: Allow listing posts that match any of a set of slugs rather than
just one
--------------------------------------+------------------------------
 Reporter:  jnylen0                   |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by rachelbaker):

 I have no problem with adding support for getting multiple posts by an
 array of slugs.  I am against removing our current "get a single post from
 a post_name" `slug` collection parameter and replacing it with "get
 multiple posts from an array of slugs"  `slugs` collection parameter.
 Maybe we just add support for `slugs`?

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


More information about the wp-trac mailing list