[wp-trac] [WordPress Trac] #31036: WP_Date_Query docblock doesn't properly describe array inputs
WordPress Trac
noreply at wordpress.org
Thu Feb 5 06:16:37 UTC 2015
#31036: WP_Date_Query docblock doesn't properly describe array inputs
--------------------------+---------------------------
Reporter: boonebgorges | Owner: DrewAPicture
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+---------------------------
Changes (by DrewAPicture):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"31336"]:
{{{
#!CommitTicketReference repository="" revision="31336"
Clarify inline documentation for `WP_Date_Query` to better explain the
relationship between an individual clause's 'compare' argument and various
integer-based date arguments.
If the 'compare' argument equals 'IN' or 'NOT IN', arrays of any number of
specific, valid values are accepted and simply considered based on the
value of 'operator' (OR or AND). If the 'compare' argument is a range such
as 'BETWEEN' or 'NOT BETWEEN', arrays of only two valid values are
accepted.
Props boonebgorges.
Fixes #31036.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31036#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list