mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@46471 git-svn-id: http://core.svn.wordpress.org/trunk@46269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d6cd13597
commit
e8fcc3fbe7
@ -123,9 +123,11 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
|
|||||||
* @return mixed The prepared value.
|
* @return mixed The prepared value.
|
||||||
*/
|
*/
|
||||||
protected function prepare_value( $value, $schema ) {
|
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
|
* If the value is not valid by the schema, set the value to null.
|
||||||
// the current invalid 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 ) ) ) {
|
if ( is_wp_error( rest_validate_value_from_schema( $value, $schema ) ) ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-beta3-46470';
|
$wp_version = '5.3-beta3-46471';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user