Skip to content

Commit ccbfd22

Browse files
committed
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 git-svn-id: https://develop.svn.wordpress.org/trunk@51513 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 12a8203 commit ccbfd22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ class WP_Date_Query {
133133
* Default empty.
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
* }
141141
* }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ public function fill_query_vars( $array ) {
719719
* return posts containing 'pillow' but not 'sofa'. The
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.
725725
* @type string $tag Tag slug. Comma-separated (either), Plus-separated (all).

0 commit comments

Comments
 (0)