Make WordPress Core

Changeset 61449


Ignore:
Timestamp:
01/08/2026 12:47:29 AM (4 months ago)
Author:
johnbillion
Message:

Docs: Correct the documented value ranges for query parameters relating to week numbers.

See #64224

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

Legend:

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

    r61191 r61449  
    121121     *             @type int|int[]    $month         Optional. The two-digit month number. Accepts numbers 1-12 or an
    122122     *                                               array of valid numbers if `$compare` supports it. Default empty.
    123      *             @type int|int[]    $week          Optional. The week number of the year. Accepts numbers 0-53 or an
     123     *             @type int|int[]    $week          Optional. The week number of the year. Accepts numbers 1-53 or an
    124124     *                                               array of valid numbers if `$compare` supports it. Default empty.
    125125     *             @type int|int[]    $dayofyear     Optional. The day number of the year. Accepts numbers 1-366 or an
  • trunk/src/wp-includes/class-wp-query.php

    r61403 r61449  
    797797     *                                                   get_term_meta() call will hit the database.
    798798     *                                                   Defaults to the value of `$update_post_term_cache`.
    799      *     @type int             $w                      The week number of the year. Default empty. Accepts numbers 0-53.
     799     *     @type int             $w                      The week number of the year. Default empty. Accepts numbers 1-53.
    800800     *     @type int             $year                   The four-digit year. Default empty. Accepts any four-digit year.
    801801     * }
Note: See TracChangeset for help on using the changeset viewer.