#54248 closed enhancement (fixed)
Update documentation of WP_Date_Query to reflect changes in accepted column names
Reported by: | dimadin | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Date/Time | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
When WP_Date_Query
was introduced in [25139], column name was accepted only if it was from restricted list, or if filter was used. But in [29933], WP_Date_Query::validate_column()
was changed so that any column name is accepted without need for filter if column name has table prefix.
Patch updates documentations for column name parameters by removing list of column names that are accepted (which was outdated anyway) and it points to WP_Date_Query::validate_column()
with more detailed documentation.
Also, patch updates documentation of date_query_valid_columns
filter since it wasn't updated when the latest change to the passed value was made in [37477].
Change History (7)
Note: See
TracTickets for help on using
tickets.
https://core.trac.wordpress.org/ticket/54248