[wp-trac] [WordPress Trac] #39004: Alt attributes should be searchable in media library
WordPress Trac
noreply at wordpress.org
Sun May 11 20:32:27 UTC 2025
#39004: Alt attributes should be searchable in media library
-------------------------------------+-------------------------------------
Reporter: joedolson | Owner: joedolson
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: accessibility,
tests phase-3-media-triage needs- | administration
design |
-------------------------------------+-------------------------------------
Changes (by SirLouen):
* keywords: has-patch has-unit-tests needs-testing phase-3-media-triage =>
has-patch has-unit-tests phase-3-media-triage needs-design
Comment:
Replying to [comment:44 abitofmind]:
> **Good News:** With the free plugin [https://wordpress.org/plugins
/media-library-assistant/ Media Library Assistant] you can search the ALT
text at: Media > Assistant.
There is
[https://core.trac.wordpress.org/attachment/ticket/39004/39004.3.patch a
patch uploaded 4 years ago] that enables this. The topic discussed here is
that for a massive number of images, performance issues could appear.
[https://plugins.svn.wordpress.org/media-library-assistant/trunk/includes
/class-mla-data-query.php Checking at the plugin code], maybe I'm wrong,
but I feel the performance issues will be even worst because the query is
search for each single record in the `postmeta` table, not taking at least
just the records with meta keys _wp_attachment_image_alt` or
`_wp_attached_file` as proposed in the patch.
Despite this plugin does the job, it is not doing it as expected, although
as @joedolson suggested, we can take the design as a reference for a
search (with the tick boxes maybe?). I don't love it, but definitely what
we actually need here to proceed is some design proposals to avoid ending
with some dirty result.
Summarizing here, the proposed idea is to add some button like "Advanced"
search that provides a way to select at least a search selector like ALT-
TAG. Since its only one search selector for now, maybe just an elegant
tick-box for Search by Alt Tag, will do the trick?
[[Image(https://i.imgur.com/spr9Ouw.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39004#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list