mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Docs: Miscellaneous DocBlock corrections.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48198 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1297,12 +1297,12 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
|
||||
}
|
||||
|
||||
if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) {
|
||||
/* translators: 1: Parameter, 2: number. */
|
||||
/* translators: 1: Parameter, 2: Number. */
|
||||
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at least %2$s items.' ), $param, number_format_i18n( $args['minItems'] ) ) );
|
||||
}
|
||||
|
||||
if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
|
||||
/* translators: 1: Parameter, 2: number. */
|
||||
/* translators: 1: Parameter, 2: Number. */
|
||||
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at most %2$s items.' ), $param, number_format_i18n( $args['maxItems'] ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user