[wp-trac] [WordPress Trac] #15787: Change the built-in wp_caption & caption function to be XHTML compliant

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 12 17:18:03 UTC 2010


#15787: Change the built-in wp_caption & caption function to be XHTML compliant
-------------------------+--------------------------------------------------
 Reporter:  PoPSiCLe     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Validation   |     Version:  3.1            
 Severity:  normal       |    Keywords:  has-patch      
-------------------------+--------------------------------------------------
 The built-in function for creating wp_captions and captions to images is
 at best flawed, as it uses <div>'s to contain the container for the image
 and image-text. When these div's are placed inside <p>-tags, it breaks
 validation, and may also introduce other issues, based on CSS and other
 plugins.

 Hence, the whole function should have a quick rewrite.

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


More information about the wp-trac mailing list