Make WordPress Core

Changeset 51513


Ignore:
Timestamp:
07/30/2021 10:22:11 AM (5 years ago)
Author:
johnbillion
Message:

Docs: Correct the documented allowed range for the minute and second parameters of WP_Query.

These are correctly documented and validated in WP_Date_Query as 0-59.

See #53399

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-date-query.php

    r49672 r51513  
    134134         *             @type int|int[]    $hour          Optional. The hour of the day. Accepts numbers 0-23 or an array
    135135         *                                               of valid numbers if `$compare` supports it. Default empty.
    136          *             @type int|int[]    $minute        Optional. The minute of the hour. Accepts numbers 0-60 or an array
     136         *             @type int|int[]    $minute        Optional. The minute of the hour. Accepts numbers 0-59 or an array
    137137         *                                               of valid numbers if `$compare` supports it. Default empty.
    138          *             @type int|int[]    $second        Optional. The second of the minute. Accepts numbers 0-60 or an
     138         *             @type int|int[]    $second        Optional. The second of the minute. Accepts numbers 0-59 or an
    139139         *                                               array of valid numbers if `$compare` supports it. Default empty.
    140140         *         }
  • trunk/src/wp-includes/class-wp-query.php

    r51301 r51513  
    720720         *                                                 character used for exclusion can be modified using the
    721721         *                                                 the 'wp_query_search_exclusion_prefix' filter.
    722          *     @type int          $second                  Second of the minute. Default empty. Accepts numbers 0-60.
     722         *     @type int          $second                  Second of the minute. Default empty. Accepts numbers 0-59.
    723723         *     @type bool         $sentence                Whether to search by phrase. Default false.
    724724         *     @type bool         $suppress_filters        Whether to suppress filters. Default false.
Note: See TracChangeset for help on using the changeset viewer.