Make WordPress Core

Changeset 41707


Ignore:
Timestamp:
10/03/2017 03:17:09 PM (7 years ago)
Author:
SergeyBiryukov
Message:

HTTP API: Use WP_HTTP_Response::set_data() in ::__construct() instead of directly accessing the $data property.

Props tfrommen.
Fixes #41759.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-response.php

    r41162 r41707  
    4949     */
    5050    public function __construct( $data = null, $status = 200, $headers = array() ) {
    51         $this->data = $data;
     51        $this->set_data( $data );
    5252        $this->set_status( $status );
    5353        $this->set_headers( $headers );
Note: See TracChangeset for help on using the changeset viewer.