Skip to content

Commit 30b82c6

Browse files
REST API: Correct error code for the maxItems keyword.
See [50007]. git-svn-id: https://develop.svn.wordpress.org/trunk@50461 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f2367e6 commit 30b82c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/rest-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ function rest_validate_array_value_from_schema( $value, $args, $param ) {
23652365

23662366
if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
23672367
return new WP_Error(
2368-
'test_too_many_items',
2368+
'rest_too_many_items',
23692369
/* translators: 1: Parameter, 2: Number. */
23702370
sprintf(
23712371
_n(

0 commit comments

Comments
 (0)