[wp-trac] [WordPress Trac] #35426: Create response status code aliases on WP_Http for convenience

WordPress Trac noreply at wordpress.org
Thu Jan 14 13:34:16 UTC 2016


#35426: Create response status code aliases on WP_Http for convenience
--------------------------------------------------+-----------------------
 Reporter:  joehoyle                              |       Owner:  joehoyle
     Type:  defect (bug)                          |      Status:  reopened
 Priority:  normal                                |   Milestone:  4.5
Component:  HTTP API                              |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  has-unit-tests has-patch 2nd-opinion  |     Focuses:
--------------------------------------------------+-----------------------

Comment (by joehoyle):

 @knutsp give that the descriptions already exist in
 `get_status_header_desc` i'm not sure how much value there is to doing
 that, but I don't feel strongly either way.

 @johnbillion I think we'd be better not renaming all constants with
 `STATUS_*` just for `CONTINUE`, I'd rather we give `100` a description
 that isn't a reserved word.

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


More information about the wp-trac mailing list