Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#15787 closed enhancement (duplicate)

Change the built-in wp_caption & caption function to be XHTML compliant

Reported by: popsicle's profile 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)

caption_change.txt (1.3 KB) - added by PoPSiCLe 13 years ago.
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

Download all attachments as: .zip

Change History (2)

@PoPSiCLe
13 years ago

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

#1 @ocean90
13 years ago

  • Keywords has-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.