[wp-trac] [WordPress Trac] #22744: Media search doesn't include file name
WordPress Trac
noreply at wordpress.org
Tue Sep 6 07:42:42 UTC 2016
#22744: Media search doesn't include file name
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: enhancement | wonderboymusic
Priority: normal | Status: reviewing
Component: Media | Milestone: 4.7
Severity: normal | Version: 3.0
Keywords: has-patch needs-testing has-unit- | Resolution:
tests | Focuses:
| administration
-------------------------------------------------+-------------------------
Comment (by swissspidy):
Based on the previous comments on this ticket and the users' desire to
improve media management, we should focus on adding this to the back-end
only.
With that in mind, [attachment:22744.8.diff] will likely cause unexpected
behaviour for people running attachment queries elsewhere. Adding a meta
query in `wp_ajax_query_attachments()` would isolate this more and be way
cleaner than the manual JOIN in `WP_Query`.
Unfortunately, meta queries cannot easily be made optional yet, hence the
need for `_wp_filter_attachment_meta_sql` in [attachment:22744.3.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22744#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list