Opened 14 years ago
Closed 14 years ago
#15787 closed enhancement (duplicate)
Change the built-in wp_caption & caption function to be XHTML compliant
Reported by: | PoPSiCLe | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Validation | Keywords: | |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is a code-example taken from my theme's functions.php-file, hence it's a replacement function, it should "pop in" directly and replace the original one, though. CSS is included