diff --git a/src/wp-includes/class-wp-http-response.php b/src/wp-includes/class-wp-http-response.php index 498af5fa7a..4bf95c3a19 100644 --- a/src/wp-includes/class-wp-http-response.php +++ b/src/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 ); }