[wp-trac] [WordPress Trac] #8256: Caption and alternative text should not be the same

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 9 20:58:02 UTC 2009


#8256: Caption and alternative text should not be the same
------------------------------+---------------------------------------------
 Reporter:  frankie-roberto   |        Owner:          
     Type:  enhancement       |       Status:  reopened
 Priority:  normal            |    Milestone:  2.9     
Component:  Gallery           |      Version:  2.8     
 Severity:  normal            |   Resolution:          
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------
Changes (by Sam_a):

  * keywords:  => has-patch tested


Comment:

 Patch (tested successfully in trunk) changes caption shortcode's output:

  * If image's alternative text is identical to caption text, alt text is
 removed (as `alt=""`), but you can force keeping it instead by passing
 TRUE via 'wp_img_caption_print_duplicate_alt' filter
  * If the image's alt text is disinct from caption text, it's left as is.

 I think this behavior is more consistent with the HTML 5 guidelines.

 I still hope the alt/caption difficulties can be worked out somehow in the
 2.9 media UI redesign. I reported some of the same issues as Jane in
 another ticket (#8888): the Insert Image Attachment dialog inserts either
 a caption and duplicate alt text or no caption and no alt text.

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


More information about the wp-trac mailing list