From e0e6c989284275792edeb1cae46fcab3b9dcf1ca Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 28 Nov 2014 11:26:23 +0000 Subject: [PATCH] 4.1 Docs Audit: Improve inline documentation in various `WP_Date_Query` methods modified in 4.1. See #30469. Built from https://develop.svn.wordpress.org/trunk@30611 git-svn-id: http://core.svn.wordpress.org/trunk@30601 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/date.php | 14 +++++++------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/date.php b/wp-includes/date.php index 4ef6a7bafa..bd37786a0c 100644 --- a/wp-includes/date.php +++ b/wp-includes/date.php @@ -126,7 +126,7 @@ class WP_Date_Query { * @type int $dayofweek Optional. The day number of the week. Default empty. * Accepts numbers 1-7 (1 is Sunday). * @type int $dayofweek_iso Optional. The day number of the week (ISO). Accepts numbers 1-7 - * (1 is Monday).Default empty. + * (1 is Monday). Default empty. * @type int $hour Optional. The hour of the day. Default empty. Accepts numbers 0-23. * @type int $minute Optional. The minute of the hour. Default empty. Accepts * numbers 0-60. @@ -180,12 +180,12 @@ class WP_Date_Query { * * Ensures that each query-level clause has a 'relation' key, and that * each first-order clause contains all the necessary keys from - * $defaults. + * `$defaults`. * * @since 4.1.0 * @access public * - * @param array $query A tax_query query clause. + * @param array $query A tax_query query clause. * @return array Sanitized queries. */ public function sanitize_query( $queries, $parent_query = null ) { @@ -480,9 +480,9 @@ class WP_Date_Query { * @since 4.1.0 Added 'user_registered' to the default recognized columns. * * @param array $valid_columns An array of valid date query columns. Defaults - * are 'post_date', 'post_date_gmt', 'post_modified', - * 'post_modified_gmt', 'comment_date', 'comment_date_gmt', - * 'user_registered' + * are 'post_date', 'post_date_gmt', 'post_modified', + * 'post_modified_gmt', 'comment_date', 'comment_date_gmt', + * 'user_registered' */ if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) ) { $column = 'post_date'; @@ -579,7 +579,7 @@ class WP_Date_Query { * * @param array $query Query to parse. * @param int $depth Optional. Number of tree levels deep we currently are. - * Used to calculate indentation. + * Used to calculate indentation. Default 0. * @return array { * Array containing JOIN and WHERE SQL clauses to append to a single query array. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 7ecbe008c0..7d5a17b0e8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30610'; +$wp_version = '4.1-beta2-30611'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.