[wp-trac] [WordPress Trac] #22744: Media search doesn't include file name
WordPress Trac
noreply at wordpress.org
Mon Sep 5 14:04:55 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 joemcgill):
Thanks @swissspidy. In [attachment:22744.6.diff] I modified your unit test
in [attachment:22744.5.diff] to also test cases where the post type is
passed as a string instead of an array. I also added a test to demonstrate
the current behavior of not including searches for attachment filenames in
general searches.
I tend to agree that fixing this exclusively for attachment searches is
probably fine for this ticket. I'm curious if including the meta value
search here will have any significant performance implications for sites
containing a large post meta table—something that should also be
considered if we decide to change behavior in #27266.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22744#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list