Skip to content

Commit

Permalink
HTTP API: Use WP_HTTP_Response::set_data() in ::__construct() ins…
Browse files Browse the repository at this point in the history
…tead 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
  • Loading branch information
SergeyBiryukov committed Oct 3, 2017
1 parent af4cda2 commit 52ca3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/class-wp-http-response.php
Expand Up @@ -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 );
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -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.
Expand Down

0 comments on commit 52ca3b1

Please sign in to comment.