Make WordPress Core

Changeset 50461


Ignore:
Timestamp:
03/01/2021 04:30:41 PM (3 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Correct error code for the maxItems keyword.

See [50007].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r50340 r50461  
    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(
Note: See TracChangeset for help on using the changeset viewer.