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

WordPress Trac noreply at wordpress.org
Mon Jan 18 12:53:55 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 danielbachhuber):

 Replying to [comment:7 rmccue]:
 > I don't think we can change the data already being passed in `WP_Error`
 objects, as this'll break compatibility.

 Can you clarify what the alternative should be? I thought changing the
 data included in `WP_Error` objects was the original intent.

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


More information about the wp-trac mailing list