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

WordPress Trac noreply at wordpress.org
Tue Jul 9 18:28:00 UTC 2019


#39704: Consider returning pagination headers on out-of-bounds requests
-------------------------+-----------------------------
 Reporter:  joehoyle     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  REST API     |     Version:  4.8
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------
Changes (by TimothyBlynJacobs):

 * type:  defect (bug) => enhancement


Comment:

 We don't currently have a way to attach headers to `WP_Error`.

 Would we have to worry about BC by changing to a `WP_REST_Response` being
 returned instead? Should this wait until `WP_Error` extends
 `WP_Http_Response`?

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


More information about the wp-trac mailing list