[wp-trac] [WordPress Trac] #22744: Media search doesn't include file name

WordPress Trac noreply at wordpress.org
Wed Oct 5 19:50:04 UTC 2016


#22744: Media search doesn't include file name
---------------------------------------------+-----------------------------
 Reporter:  johnbillion                      |       Owner:  joemcgill
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  Media                            |     Version:  3.0
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  administration
---------------------------------------------+-----------------------------
Changes (by joemcgill):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38733"]:
 {{{
 #!CommitTicketReference repository="" revision="38733"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22744#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list