wordpress-develop/tests/phpunit/tests/query
Boone Gorges 00f7ae376a Better "inclusive" support for string values in WP_Date_Query.
The 'inclusive' parameter for WP_Date_Query determines whether non-precise
dates for 'before' and 'after' will be rounded up or down. Previously, this was
supported only when 'before' and 'after' were arrays; string-formatted dates
were run through strtotime(), which rounded them all down (inclusive in the
case of after, non-inclusive in the case of before). Now, we attempt to parse
formats that look like MySQL-formatted date strings, and apply inclusive logic
to them if we recognize them successfully.

Fixes #29908.
string values. Array values support the 'inclusive

git-svn-id: https://develop.svn.wordpress.org/trunk@29936 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-17 02:27:44 +00:00
..
conditionals.php Add expectedIncorrectUsage flags for unit tests that generate invalid dates. 2014-10-17 00:40:06 +00:00
date.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
dateQuery.php Better "inclusive" support for string values in WP_Date_Query. 2014-10-17 02:27:44 +00:00
parseQuery.php Check that search value is scalar before parsing. 2014-10-16 03:31:27 +00:00
results.php Add expectedIncorrectUsage flags for unit tests that generate invalid dates. 2014-10-17 00:40:06 +00:00
search.php Add unit tests for searching by relevance. 2014-03-08 21:26:26 +00:00
taxQuery.php Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls. 2014-07-03 01:42:57 +00:00
verboseRewriteRules.php Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls. 2014-07-03 01:42:57 +00:00