Files
WordPress/wp-includes/js
Joe McGill 8ed022b568 Media: Remove alt fallbacks to improve accessibility.
This removes the fallbacks in `wp_get_attachment_image()` and in
`wp.media.string.props` which attempt to generate an `alt` value
from the image caption or title if an `alt` attribute isn't explicitly
set.

This allows for image HTML to be generated that contains an empty `alt`
value, i.e., `alt=""` which is much preferable for screen readers than
reading redundant content in the case of a caption, or when reading the
image title, which is often generated from the filename and not helpful
as `alt` text.

Props odie2, joedolson, rianrietveld, afercia, iamjolly, joemcgill.
Fixes #34635.
Built from https://develop.svn.wordpress.org/trunk@38812


git-svn-id: http://core.svn.wordpress.org/trunk@38755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-19 03:06:28 +00:00
..
2016-10-14 21:38:28 +00:00
2012-11-17 15:11:29 +00:00
2015-03-11 17:15:27 +00:00
2012-04-17 23:09:29 +00:00
2015-06-28 14:51:30 +00:00
2013-11-15 04:42:09 +00:00
2013-12-28 23:53:15 +00:00
2013-12-28 23:53:15 +00:00
2016-10-17 20:01:31 +00:00
2016-10-17 20:01:31 +00:00