Opened 16 years ago
Closed 16 years ago
#15787 closed enhancement (duplicate)
Change the built-in wp_caption & caption function to be XHTML compliant
| Reported by: | PoPSiCLe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Validation | Version: | 3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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