Changeset 48198 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 06/28/2020 11:51:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r48173 r48198 1298 1298 1299 1299 if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) { 1300 /* translators: 1: Parameter, 2: number. */1300 /* translators: 1: Parameter, 2: Number. */ 1301 1301 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at least %2$s items.' ), $param, number_format_i18n( $args['minItems'] ) ) ); 1302 1302 } 1303 1303 1304 1304 if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) { 1305 /* translators: 1: Parameter, 2: number. */1305 /* translators: 1: Parameter, 2: Number. */ 1306 1306 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at most %2$s items.' ), $param, number_format_i18n( $args['maxItems'] ) ) ); 1307 1307 }
Note: See TracChangeset
for help on using the changeset viewer.