diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/rest-api/class-wp-rest-response.php --- a/wp/wp-includes/rest-api/class-wp-rest-response.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/rest-api/class-wp-rest-response.php Fri Sep 05 18:40:08 2025 +0200 @@ -227,7 +227,7 @@ return null; } - $error = new WP_Error; + $error = new WP_Error(); if ( is_array( $this->get_data() ) ) { $data = $this->get_data();