Go to file
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
src Media: Better handling of JOINs when searching filenames. 2016-10-05 19:50:02 +00:00
tests Media: Better handling of JOINs when searching filenames. 2016-10-05 19:50:02 +00:00
tools/i18n
.editorconfig
.gitignore Revert [38401] after [38480]. 2016-09-06 18:12:09 +00:00
.jshintrc
.travis.yml Build/Test Tools: Ensure PHP 7.1 is tested on Travis. 2016-08-17 20:45:07 +00:00
Gruntfile.js OEmbed: add unit tests. `@group external-oembed` is not run by default. 2016-08-30 18:54:53 +00:00
package.json Build/Test: Bump Autoprefixer to 6.5.0 2016-09-30 17:33:57 +00:00
phpunit.xml.dist OEmbed: add unit tests. `@group external-oembed` is not run by default. 2016-08-30 18:54:53 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php