Make WordPress Core

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)

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

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