Changeset 46471
- Timestamp:
- 10/13/2019 10:00:18 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
r46069 r46471 124 124 */ 125 125 protected function prepare_value( $value, $schema ) { 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 128 // the current invalid value to null. 126 /* 127 * If the value is not valid by the schema, set the value to null. 128 * Null values are specifically non-destructive, so this will not cause 129 * overwriting the current invalid value to null. 130 */ 129 131 if ( is_wp_error( rest_validate_value_from_schema( $value, $schema ) ) ) { 130 132 return null;
Note: See TracChangeset
for help on using the changeset viewer.