[wp-trac] [WordPress Trac] #22744: Media search doesn't include file name
WordPress Trac
noreply at wordpress.org
Sat Sep 24 16:09:55 UTC 2016
#22744: Media search doesn't include file name
--------------------------------------+-----------------------------
Reporter: johnbillion | Owner: joemcgill
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.7
Component: Media | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+-----------------------------
Changes (by flixos90):
* keywords: has-patch has-unit-tests commit => has-patch has-unit-tests
* status: closed => reopened
* resolution: fixed =>
Comment:
I noticed a bug introduced by the above changeset: The JOIN clause of the
query is completely overridden by `_filter_query_attachment_filenames()`,
regardless of whether other joins were already included. This can break
several queries. We need to make sure that original joins are preserved.
I stumbled across this while querying attachment taxonomies. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22744#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list