From ab9ed33f1dd731e947e8645961ee17bcc3e52f79 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 30 Jul 2021 10:23:57 +0000 Subject: [PATCH] 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 Built from https://develop.svn.wordpress.org/trunk@51513 git-svn-id: http://core.svn.wordpress.org/trunk@51124 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-date-query.php | 4 ++-- wp-includes/class-wp-query.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-date-query.php b/wp-includes/class-wp-date-query.php index 5df12ade4c..855f31d42f 100644 --- a/wp-includes/class-wp-date-query.php +++ b/wp-includes/class-wp-date-query.php @@ -133,9 +133,9 @@ class WP_Date_Query { * Default empty. * @type int|int[] $hour Optional. The hour of the day. Accepts numbers 0-23 or an array * of valid numbers if `$compare` supports it. Default empty. - * @type int|int[] $minute Optional. The minute of the hour. Accepts numbers 0-60 or an array + * @type int|int[] $minute Optional. The minute of the hour. Accepts numbers 0-59 or an array * of valid numbers if `$compare` supports it. Default empty. - * @type int|int[] $second Optional. The second of the minute. Accepts numbers 0-60 or an + * @type int|int[] $second Optional. The second of the minute. Accepts numbers 0-59 or an * array of valid numbers if `$compare` supports it. Default empty. * } * } diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 09c6a22b0d..e95d7a9ec2 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -719,7 +719,7 @@ class WP_Query { * return posts containing 'pillow' but not 'sofa'. The * character used for exclusion can be modified using the * the 'wp_query_search_exclusion_prefix' filter. - * @type int $second Second of the minute. Default empty. Accepts numbers 0-60. + * @type int $second Second of the minute. Default empty. Accepts numbers 0-59. * @type bool $sentence Whether to search by phrase. Default false. * @type bool $suppress_filters Whether to suppress filters. Default false. * @type string $tag Tag slug. Comma-separated (either), Plus-separated (all). diff --git a/wp-includes/version.php b/wp-includes/version.php index 714a22e113..1ba589a12f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51512'; +$wp_version = '5.9-alpha-51513'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.