[wp-trac] [WordPress Trac] #44326: Add relation parameter to REST API /wp/v2/posts endpoint
WordPress Trac
noreply at wordpress.org
Thu Jun 7 19:34:44 UTC 2018
#44326: Add relation parameter to REST API /wp/v2/posts endpoint
--------------------------------------+------------------------------
Reporter: earnjam | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by earnjam):
[attachment:44326.diff]:
- Adds a new parameter to the `/wp/v2/posts` endpoint called `relation`
which accepts `AND` or `OR`. If left off, it defaults to the current
functionality of `AND`.
- Adds 2 new tests
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44326#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list