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

Props tfrommen.
Fixes #41759.
Built from https://develop.svn.wordpress.org/trunk@41707


git-svn-id: http://core.svn.wordpress.org/trunk@41541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-10-03 15:18:46 +00:00
parent af4cda27cc
commit 52ca3b18d2
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class WP_HTTP_Response {
* @param array $headers Optional. HTTP header map. Default empty array.
*/
public function __construct( $data = null, $status = 200, $headers = array() ) {
$this->data = $data;
$this->set_data( $data );
$this->set_status( $status );
$this->set_headers( $headers );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41706';
$wp_version = '4.9-alpha-41707';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.