From 9ddff60ecd24f5aa29f56e39d24ee5be443f2384 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sat, 30 Jul 2022 14:01:13 +0000 Subject: [PATCH] Docs: Various docblock fixes in `WP_Date_Query` class, as per docs standards. See #55646. Built from https://develop.svn.wordpress.org/trunk@53798 git-svn-id: http://core.svn.wordpress.org/trunk@53357 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-date-query.php | 14 +++++++------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/class-wp-date-query.php b/wp-includes/class-wp-date-query.php index 1978afe762..1fa3652176 100644 --- a/wp-includes/class-wp-date-query.php +++ b/wp-includes/class-wp-date-query.php @@ -233,7 +233,7 @@ class WP_Date_Query { } /** - * Determine whether this is a first-order clause. + * Determines whether this is a first-order clause. * * Checks to see if the current clause has any time-related keys. * If so, it's first-order. @@ -276,7 +276,7 @@ class WP_Date_Query { * @since 4.1.0 * * @param array $date_query The date_query array. - * @return bool True if all values in the query are valid, false if one or more fail. + * @return bool True if all values in the query are valid, false if one or more fail. */ public function validate_date_values( $date_query = array() ) { if ( empty( $date_query ) ) { @@ -539,7 +539,7 @@ class WP_Date_Query { } /** - * Generate WHERE clause to be appended to a main query. + * Generates WHERE clause to be appended to a main query. * * @since 3.7.0 * @@ -562,7 +562,7 @@ class WP_Date_Query { } /** - * Generate SQL clauses to be appended to a main query. + * Generates SQL clauses to be appended to a main query. * * Called by the public WP_Date_Query::get_sql(), this method is abstracted * out to maintain parity with the other Query classes. @@ -587,7 +587,7 @@ class WP_Date_Query { } /** - * Generate SQL clauses for a single query array. + * Generates SQL clauses for a single query array. * * If nested subqueries are found, this method recurses the tree to * produce the properly nested SQL. @@ -858,12 +858,12 @@ class WP_Date_Query { * * @since 3.7.0 * - * @param string|array $datetime An array of parameters or a strotime() string + * @param string|array $datetime An array of parameters or a strotime() string. * @param bool $default_to_max Whether to round up incomplete dates. Supported by values * of $datetime that are arrays, or string values that are a * subset of MySQL date format ('Y', 'Y-m', 'Y-m-d', 'Y-m-d H:i'). * Default: false. - * @return string|false A MySQL format date/time or false on failure + * @return string|false A MySQL format date/time or false on failure. */ public function build_mysql_datetime( $datetime, $default_to_max = false ) { if ( ! is_array( $datetime ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 37cdfd1114..ed183217b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53797'; +$wp_version = '6.1-alpha-53798'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.