changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
--- 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();