[wp-trac] [WordPress Trac] #18984: Accessibility: Title attribute should not be added to image markup by media.php

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 26 20:14:43 UTC 2012


#18984: Accessibility: Title attribute should not be added to image markup by
media.php
--------------------------+------------------
 Reporter:  esmi          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by martythornley):

 Looking into image captions and gallery shotcodes as well...

 The following just take existing $html of an img tag and don't mess with
 the attributes, just wrap in the caption:
 image_add_caption()
 img_caption_shortcode()

 Gallery shortcode uses
 wp_get_attachment_link() which uses wp_get_attachment_image() which is
 fixed in this patch.

 None of the filters surrounding these functions seem to have anything in
 core hooked in that would effect the title attribute.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18984#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list