[wp-trac] [WordPress Trac] #39965: REST API: not possible to request collection of posts across post types

WordPress Trac noreply at wordpress.org
Wed Jul 26 19:13:32 UTC 2017


#39965: REST API: not possible to request collection of posts across post types
-------------------------+-----------------------
 Reporter:  iseulde      |       Owner:  jnylen0
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.9
Component:  REST API     |     Version:  4.7
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------

Comment (by jnylen0):

 This is for the feature of the link dialog that allows linking to a post
 or page. See #38920 for the core ticket to update this to use the REST
 API.

 For reference, here is the code that currently drives this Ajax action:
 https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/class-wp-
 editor.php#L1558

 Thanks for explaining your concerns; I agree this isn't the best fit for
 the existing `wp/v2 endpoints.  However, shifting the responsibility to
 the client to batch requests isn't a great solution either.

 We could write a minimal endpoint to provide this functionality and ship
 it in Gutenberg first.

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


More information about the wp-trac mailing list