- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
r42343 r43571 37 37 38 38 register_rest_route( 39 $this->namespace, '/' . $this->rest_base, array( 39 $this->namespace, 40 '/' . $this->rest_base, 41 array( 40 42 array( 41 43 'methods' => WP_REST_Server::READABLE, … … 188 190 if ( is_wp_error( rest_validate_value_from_schema( get_option( $args['option_name'], false ), $args['schema'] ) ) ) { 189 191 return new WP_Error( 190 'rest_invalid_stored_value', sprintf( __( 'The %s property has an invalid stored value, and cannot be updated to null.' ), $name ), array( 'status' => 500 ) 192 'rest_invalid_stored_value', 193 sprintf( __( 'The %s property has an invalid stored value, and cannot be updated to null.' ), $name ), 194 array( 'status' => 500 ) 191 195 ); 192 196 }
Note: See TracChangeset
for help on using the changeset viewer.