[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:50:44 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 joehoyle):
@jnylen0 I think @rachelbaker's point is _by default_ for whatever reason,
WordPress considers asking for multiple slugs to be a private_query_vars,
that's why this is not available out of the box, as the rest api respects
the public_query_vars.
However, of course in this case, it's fairy easy to see that there's not
really any downside to disregarding the fact that it's a private query
var.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38579#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list