Media Search Enhanced source code
By Yoren Chang, on WordPress.org since 2014. 5,000+ active installs.
Try it live in your browser — launch the WordPress Playground demo. Below is its source code for every one of its 23 releases, what changed in the latest one, and how often it ships.
What changed in 1.1.0
Released Dec 1, 2026, 2 months after 1.0.1- New: The search also matches the IPTC keywords embedded in photos. Filter mse_search_photo_keywords turns this off. Props @markhowellsmead.
- Note: Photos uploaded before this version are indexed by a background task (WP-Cron) after updating. On large libraries their keywords become searchable as indexing progresses. The task runs again whenever the plugin is activated, to pick up photos uploaded or changed while it was inactive.
5 files changed since 1.0.1: 4 modified, 1 added, 0 removed.
- README.txt modified, +1,211 bytes
- media-search-enhanced.php modified, +264 bytes
- public/class-media-search-enhanced.php modified, +867 bytes
- uninstall.php modified, +782 bytes
- public/class-media-search-enhanced-photo-keywords.php added
Release history
23 releases since March 2014- 1.1.0 Dec 1, 2026 New: The search also matches the IPTC keywords embedded in photos. Filter mse_search_photo_keywords turns this off. Props @markhowellsmead.
- 1.0.1 Sep 9, 2026 Fix: The [mse-search-form] shortcode returned no results on the frontend. Attachment searches that don’t specify a post status now default to inherit; without it WordPress core restricts the query to public statuses, which no attachment has. Regression introduced in 1.0.0.
- 1.0.0 Apr 23, 2026 New: Multi-term search — use commas to search for multiple items at once anywhere in wp-admin, including the Media Library list view and the “Add Media” modal (e.g. sunset.jpg, logo.png). Limited to 10 terms. Frontend searches still treat commas as literal characters.
- 0.9.2 Jan 21, 2026 Security enhancements.
- 0.9.1 Nov 4, 2025 Fix: Prevent “Not unique table/alias: wp_postmeta” SQL error by aliasing the postmeta JOIN. Props @mikemeinz. See https://wordpress.org/support/topic/sql-syntax-error-26/