[wp-trac] [WordPress Trac] #26549: Remove title attributes: media.php

WordPress Trac noreply at wordpress.org
Wed Dec 11 22:52:15 UTC 2013


#26549: Remove title attributes: media.php
---------------------------+------------------------------
 Reporter:  joedolson      |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Accessibility  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by joedolson):

 The only call to get_image_tag is in get_image_send_to_editor, which
 submits a blank string for the title attribute. Therefore, in
 get_image_tag, $title will never receive a value.

 A title can still be added via the image_send_to_editor filter, but
 get_image_tag will still be irrelevant. Therefore, unless I'm missing
 something, it's totally reasonable to remove all references to $title in
 get_image_tag, adding documentation to the effect that it's been
 deprecated.

 This is a simple patch, but it may be feasible to remove the attribute
 from the function arguments, as long as $title is declared and passed to
 the filter.

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


More information about the wp-trac mailing list