[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
Sun Apr 1 23:10:52 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:  Awaiting Review
Component:  Accessibility            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch ux-feedback  |
-------------------------------------+------------------------------

Comment (by lewismedia):

 Is this not a simple fix, for the minority of users (myself included), who
 prefer NOT to have the title tag inserted automatically:


 {{{
 function remove_attachment_title_attr( $attr ) {
         unset($attr['title']);

         return $attr;
 }
 add_action('wp_get_attachment_image_attributes',
 'remove_attachment_title_attr');
 }}}

 Definitely digging the idea of offering users the option to display or not
 display with a checkbox or dropdown, though I am in agreement that this
 would be confusing for your average Joe Schmoe end user who doesn't even
 know what a title tag IS...

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


More information about the wp-trac mailing list