Make WordPress Core

Changeset 51905


Ignore:
Timestamp:
10/13/2021 07:58:35 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-date-query.php

    r51518 r51905  
    495495             * @since 3.7.0
    496496             * @since 4.1.0 Added 'user_registered' to the default recognized columns.
     497             * @since 4.6.0 Added 'registered' and 'last_updated' to the default recognized columns.
    497498             *
    498499             * @param string[] $valid_columns An array of valid date query columns. Defaults
    499500             *                                are 'post_date', 'post_date_gmt', 'post_modified',
    500501             *                                'post_modified_gmt', 'comment_date', 'comment_date_gmt',
    501              *                                'user_registered'
     502             *                                'user_registered', 'registered', 'last_updated'.
    502503             */
    503504            if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ), true ) ) {
Note: See TracChangeset for help on using the changeset viewer.