Opened 12 years ago
Closed 12 years ago
#31036 closed defect (bug) (fixed)
WP_Date_Query docblock doesn't properly describe array inputs
| Reported by: | boonebgorges | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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?