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

WordPress Trac noreply at wordpress.org
Wed Feb 28 17:58:08 UTC 2018


#43439: &_embed only embedding first 10 categories
--------------------------+-----------------------------
 Reporter:  manyourisms   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.9.4
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 Normally our posts don't have more than 10 categories, but I did notice
 that when adding more than 10 to a post, a query using &_embed still only
 embedding the first 10. After searching through the `class-wp-rest-
 server.php` code, it doesn't seem like that should be the case, but alas!
 I'm too unfamiliar with how it is building the links for a post behind the
 scenes, but surely it must be happening there if I was to guess.

 Hitting the category link href at `wp-json/wp/v2/categories?post=<postId>`
 also only returns 10 categories.

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


More information about the wp-trac mailing list