[wp-trac] [WordPress Trac] #50962: WP_HTTP_Response should have protected properties

WordPress Trac noreply at wordpress.org
Wed Aug 12 21:13:32 UTC 2020


#50962: WP_HTTP_Response should have protected properties
-------------------------------------------------+-------------------------
 Reporter:  daniel217                            |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  HTTP API                             |    Version:  5.5
 Severity:  trivial                              |   Keywords:
  Focuses:  rest-api, privacy, coding-standards  |
-------------------------------------------------+-------------------------
 I think this is a bug because there is a getter / setter for these
 properties:

 $data - get_data(), set_data( $data )
 $status - get_status (), set_status ( $code )
 $headers - get_headers(), set_headers( $headers ), header( $key, $value,
 $replace )

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50962>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list