From a0d4e5e080c54e085cbca2254372d823eb1991c0 Mon Sep 17 00:00:00 2001 From: TimothyBlynJacobs Date: Mon, 1 Mar 2021 16:32:08 +0000 Subject: [PATCH] REST API: Correct error code for the maxItems keyword. See [50007]. Built from https://develop.svn.wordpress.org/trunk@50461 git-svn-id: http://core.svn.wordpress.org/trunk@50072 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index a38d2ec460..336fe6b071 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -2365,7 +2365,7 @@ function rest_validate_array_value_from_schema( $value, $args, $param ) { if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) { return new WP_Error( - 'test_too_many_items', + 'rest_too_many_items', /* translators: 1: Parameter, 2: Number. */ sprintf( _n( diff --git a/wp-includes/version.php b/wp-includes/version.php index b51870c79f..dc69bfbcc5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50460'; +$wp_version = '5.8-alpha-50461'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.