[wp-trac] [WordPress Trac] #43439: &_embed only embedding first 10 categories

WordPress Trac noreply at wordpress.org
Wed Feb 28 19:00:35 UTC 2018


#43439: &_embed only embedding first 10 categories
--------------------------+-----------------------------
 Reporter:  manyourisms   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  REST API      |     Version:  4.9.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------------
Changes (by kadamwhite):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 Hitting the category link at `wp-json/wp/v2/categories?post=<postId>` and
 receiving 10 responses is expected; collections maintain standard
 pagination behavior when using query parameters like `post=`, so you can
 see the next page of responses with `&page=2`.

 Only permitting up to 10 records to be embedded, however, is unexpected.
 Good catch! The origin of the issue appears to be that we use the REST API
 internally to embed links collections, and these requests obey the REST
 API's standard 10-post collection response limit. I'd definitely consider
 changing this to work in a more predictable way.

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


More information about the wp-trac mailing list