[wp-trac] [WordPress Trac] #30180: wp_get_attachment_image_src does not return alt or meta
WordPress Trac
noreply at wordpress.org
Sun Sep 22 16:03:44 UTC 2019
#30180: wp_get_attachment_image_src does not return alt or meta
----------------------------+-----------------------------
Reporter: joedolson | Owner: antpb
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-dev-note | Focuses: accessibility
----------------------------+-----------------------------
Comment (by afercia):
@azaozz thanks for your feedback.
I do realize you're considering this issue mainly from a technical
perspective. In that vein, this ticket might be considered a "minor
enhancement".
However
I'm not sure considering issues merely from a technical perspective and
ignoring the practical consequences for the existence of this function is
the best way to address this issue.
> `wp_get_attachment_image_src()` is a function to retrieve the src of an
image. Nothing more
The point is that WordPress provides a function that, in its practical
usage, produces inaccessibile output.
Regardless of the original intent of this function or any documentation
WordPress may provide to explain developers they have to add an alt
attribute, this function can be (and is) abused.
This is also the reason why two experienced members of the accessibility
team requested this function to be deprecated. See comments 38 and 39.
> As @joemcgill and I mention above the current implementation is "not
there yet"
This is unfortunate and, frankly, disappointing. Six months ago the team
stated this ticket was "very close". I'm surprised it took six months to
realize "it's not there yet" instead. This ticket was punted from 5.2 to
5.3 and should have been tackled at the very beginning of the 5.3 release
cycle. It didn't happen. It's not a matter of taking a new technical
direction (which took only a few days to be identified). It just didn't
receive the necessary attention.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30180#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list