Docs: Fix typo in a comment in WP_REST_Settings_Controller::prepare_value().

Convert the comment to a multi-line format per the documentation standards.

Props itowhid06.
See #48296.

git-svn-id: https://develop.svn.wordpress.org/trunk@46471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-10-13 10:00:18 +00:00
parent 8f7174fa1a
commit a9891c7109

View File

@ -123,9 +123,11 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
* @return mixed The prepared value.
*/
protected function prepare_value( $value, $schema ) {
// If the value is not valid by the schema, set the value to null. Null
// values are specifcally non-destructive so this will not cause overwriting
// the current invalid value to null.
/*
* If the value is not valid by the schema, set the value to null.
* Null values are specifically non-destructive, so this will not cause
* overwriting the current invalid value to null.
*/
if ( is_wp_error( rest_validate_value_from_schema( $value, $schema ) ) ) {
return null;
}