diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
index 5de792c041..69df721635 100644
a
|
b
|
class WP_REST_Settings_Controller extends WP_REST_Controller { |
124 | 124 | */ |
125 | 125 | protected function prepare_value( $value, $schema ) { |
126 | 126 | // If the value is not valid by the schema, set the value to null. Null |
127 | | // values are specifcally non-destructive so this will not cause overwriting |
| 127 | // values are specifically non-destructive so this will not cause overwriting |
128 | 128 | // the current invalid value to null. |
129 | 129 | if ( is_wp_error( rest_validate_value_from_schema( $value, $schema ) ) ) { |
130 | 130 | return null; |