From 52ca3b18d2873b070472d11a27e45a36a1e719f4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 3 Oct 2017 15:18:46 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-http-response.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-http-response.php b/wp-includes/class-wp-http-response.php index 498af5fa7a..4bf95c3a19 100644 --- a/wp-includes/class-wp-http-response.php +++ b/wp-includes/class-wp-http-response.php @@ -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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 40fee6b1fa..674bf76ba5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.