Please sign in to comment.
Media: Make media library searchable by filename.
This applies a new private function, `_filter_query_attachment_filenames()`, to the `post_clauses` filter hook during `wp_ajax_query_attachments()` and `wp_edit_attachments_query_vars()` to include `_wp_attached_file` post meta in search queries performed from the media library or in a `WP_Media_List_Table`. Props wonderboymusic, DrewAPicture, joemcgill, swissspidy. Fixes #22744. Built from https://develop.svn.wordpress.org/trunk@38625 git-svn-id: http://core.svn.wordpress.org/trunk@38568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information...
Showing with 32 additions and 1 deletion.