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

WordPress Trac noreply at wordpress.org
Wed Feb 28 19:36:21 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
--------------------------+-----------------------------

Comment (by manyourisms):

 Wunderbar! Thanks for the clarification on the categories endpoint, sorry
 to have missed that.



 Replying to [comment:1 kadamwhite]:
 > 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:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list