[wp-trac] [WordPress Trac] #29822: Support complex queries in WP_Date_Query
WordPress Trac
noreply at wordpress.org
Thu Oct 16 19:33:26 UTC 2014
#29822: Support complex queries in WP_Date_Query
--------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.1
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"29923"]:
{{{
#!CommitTicketReference repository="" revision="29923"
Introduce nested query support to WP_Date_Query.
This enhancement makes it possible to filter post, comment, and other
queries
by date in ways that are arbitrarily complex, using mixed AND and OR
relations.
Includes unit tests for the new syntax. In a few places, the existing unit
tests were slightly too strict (such as when checking the exact syntax of
a SQL
string); these existing tests have been narrowed.
Props boonebgorges.
Fixes #29822.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29822#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list