From b2c8d3bb8cecd5eb73903ddc363c6d6756412c3d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 13 Oct 2021 20:00:01 +0000 Subject: [PATCH] Docs: Update documentation for the `date_query_valid_columns` filter. Add a `@since` note for `registered` and `last_updated` as default recognized date query columns. Follow-up to [25139], [25860], [29933], [29934], [29938], [37477]. Props dimadin, johnjamesjacoby. See #54248. Built from https://develop.svn.wordpress.org/trunk@51905 git-svn-id: http://core.svn.wordpress.org/trunk@51498 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-date-query.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-date-query.php b/wp-includes/class-wp-date-query.php index 5e916c9165..b8a5226e71 100644 --- a/wp-includes/class-wp-date-query.php +++ b/wp-includes/class-wp-date-query.php @@ -494,11 +494,12 @@ class WP_Date_Query { * * @since 3.7.0 * @since 4.1.0 Added 'user_registered' to the default recognized columns. + * @since 4.6.0 Added 'registered' and 'last_updated' to the default recognized columns. * * @param string[] $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' + * 'user_registered', 'registered', 'last_updated'. */ if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ), true ) ) { $column = 'post_date'; diff --git a/wp-includes/version.php b/wp-includes/version.php index a1795cf001..7983073c6c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51904'; +$wp_version = '5.9-alpha-51905'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.