Skip to content

Commit 65772ac

Browse files
committed
Docs: Correct the documented value ranges for query parameters relating to week numbers.
See #64224 git-svn-id: https://develop.svn.wordpress.org/trunk@61449 602fd350-edb4-49c9-b593-d223f7449a82
1 parent bff31ca commit 65772ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/class-wp-date-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class WP_Date_Query {
120120
* or an array of years if `$compare` supports it. Default empty.
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
126126
* array of valid numbers if `$compare` supports it.

src/wp-includes/class-wp-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ public function fill_query_vars( $query_vars ) {
796796
* disable cache priming for term meta, so that each
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
* }
802802
*/

0 commit comments

Comments
 (0)