wordpress-develop/tests/phpunit/tests/query
joemcgill 2eade6230d Media: Better handling of JOINs when searching filenames.
Following [38625], any media searches that already included JOINs,
e.g., `tax_queries`, would get trampled when we joined the post meta
table to search for filenames. This preserves existing JOINs and
also only applies the `_filter_query_attachment_filenames()` filter
when a search query is being performed.

Props flixos90, joemcgill.
Fixes #22744.

git-svn-id: https://develop.svn.wordpress.org/trunk@38733 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-05 19:50:02 +00:00
..
conditionals.php Query: Add and improve tests for query conditionals on the front page and home page. 2016-08-28 02:01:53 +00:00
date.php Unit Tests: 2016-08-27 08:35:16 +00:00
dateQuery.php Remove erroneous return in date_query test. 2016-02-29 22:40:20 +00:00
isTerm.php Unit Tests: Change some @group annotations to @ticket. 2016-07-04 20:24:52 +00:00
metaQuery.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
noFoundRows.php Add tests for no_found_rows behavior of WP_Query. 2016-05-31 19:28:46 +00:00
parseQuery.php Query: Non-scalar and negative values for 'p' should always result in a 404. 2016-08-20 02:31:31 +00:00
postStatus.php Unit Tests: 2016-08-27 08:35:16 +00:00
results.php Unit Tests: 2016-08-27 08:35:16 +00:00
search.php Media: Better handling of JOINs when searching filenames. 2016-10-05 19:50:02 +00:00
setupPostdata.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
stickies.php Unit Tests: 2016-08-27 08:35:16 +00:00
taxQuery.php Use LEFT JOIN when building WP_Tax_Query SQL. 2016-04-12 20:36:31 +00:00
vars.php Query: Re-initialise any dynamically-added public query vars before running the public query vars test. 2015-12-21 06:59:05 +00:00
verboseRewriteRules.php Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00