mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
65d9094a47
commit
04044f9aa5
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user