[wp-trac] [WordPress Trac] #35425: Return HTTP status code in WP_Error objects

WordPress Trac noreply at wordpress.org
Mon Jan 18 07:06:16 UTC 2016


#35425: Return HTTP status code in WP_Error objects
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-----------------------------

Comment (by rmccue):

 I don't think we can change the data already being passed in `WP_Error`
 objects, as this'll break compatibility. Also, we can skip specifying
 `WP_HTTP::INTERNAL_SERVER_ERROR` explicitly, just falling back to the
 default should be fine.

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


More information about the wp-trac mailing list