[wp-trac] [WordPress Trac] #21221: Image title and alt attribute content should be texturized.

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 11 19:49:18 UTC 2012


#21221: Image title and alt attribute content should be texturized.
-------------------------+-----------------------------
 Reporter:  stephdau     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  3.4.1
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 gallery_shortcode() texturizes the caption shown underneath images in
 galleries.

 For consistency, alt and title tags content should also be texturized.
 This is also valuable for developers extending the gallery shortcode or
 output, such as with the WordPress.com (and Jetpack)
 [http://en.blog.wordpress.com/2011/11/08/new-photo-carousel/ Gallery
 Carousel feature], as it provides i18n'd texturization, for EG.

 See attached patch, which:
  * uses wptexturize() in wp_get_attachment_image() directly (/wp-
 includes/media.php), which makes it work with gallries, attachment pages,
 etc.
  * also uses wptexturize() in get_image_tag() (/wp-includes/media.php),
 for consistency.
  * uses wptexturize() in wp_get_attachment_link() (/wp-includespost-
 template.php), for consistency

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21221>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list