Make WordPress Core


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

File:
1 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         *         }
Note: See TracChangeset for help on using the changeset viewer.