Opened 10 years ago
Closed 10 years ago
#31036 closed defect (bug) (fixed)
WP_Date_Query docblock doesn't properly describe array inputs
Reported by: | boonebgorges | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Query | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
See https://core.trac.wordpress.org/ticket/31001#comment:7 and https://core.trac.wordpress.org/attachment/ticket/31001/31001.2.patch
Many of the params in WP_Date_Query
accept arrays rather than ints - and, indeed, BETWEEN and NOT BETWEEN *require* arrays - but the documentation doesn't make this clear.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
DrewAPicture - If you have a moment, could you give your feedback on 31036.diff? The rub is that a bunch of parameters that normally require int values accept or even require array values when used in conjunction with certain values of
compare
. This is a hard (and redundant) thing to spell out in the array hash, so I've added a paragraph to the long description. What do you think?