[wp-trac] [WordPress Trac] #39704: Consider returning pagination headers on out-of-bounds requests

WordPress Trac noreply at wordpress.org
Thu Jan 26 15:18:33 UTC 2017


#39704: Consider returning pagination headers on out-of-bounds requests
--------------------------+----------------------------
 Reporter:  joehoyle      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+----------------------------
 Since #39061 in 39967 we return an error if the request is for a page
 number that does not exist (because there are not enough results). In 4.7
 we instead sent the pagination headers along with an empty array as the
 return (with no error).

 It's feasible that the pagination information would still be useful in the
 case of an out of bounds error, so maybe we should add the headers back.

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


More information about the wp-trac mailing list