[wp-trac] [WordPress Trac] #34635: WordPress image's title is not alt

WordPress Trac noreply at wordpress.org
Wed Oct 19 03:05:53 UTC 2016


#34635: WordPress image's title is not alt
-------------------------------------+-------------------------------------
 Reporter:  odie2                    |       Owner:  joemcgill
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.7
Component:  Media                    |     Version:  4.3
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  ui, accessibility,
  tests commit                       |  javascript
-------------------------------------+-------------------------------------
Changes (by joemcgill):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38812"]:
 {{{
 #!CommitTicketReference repository="" revision="38812"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34635#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list