[wp-trac] [WordPress Trac] #54248: Update documentation of WP_Date_Query to reflect changes in accepted column names

WordPress Trac noreply at wordpress.org
Tue Oct 12 21:35:18 UTC 2021


#54248: Update documentation of WP_Date_Query to reflect changes in accepted column
names
-------------------------+-----------------------------
 Reporter:  dimadin      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  trivial      |   Keywords:  has-patch
  Focuses:  docs         |
-------------------------+-----------------------------
 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].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54248>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list