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

WordPress Trac noreply at wordpress.org
Thu Jan 14 03:49:06 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:
--------------------------------------------------+-----------------------
Changes (by johnbillion):

 * keywords:  needs-patch has-unit-tests => has-unit-tests has-patch 2nd-
     opinion


Comment:

 I wonder if these constant names need to be prefixed. `CONTINUE` is a
 reserved word in PHP so can't be used as a constant name.

 Better: `WP_Http::STATUS_CONTINUE`, `WP_Http::STATUS_OK`, etc.

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


More information about the wp-trac mailing list