Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21846 closed defect (bug) (invalid)

Blank captions don't work

Reported by: luffer's profile luffer Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.2
Component: Media Keywords:
Focuses: Cc:


If you add a blank caption (space) to an image, it ignores the caption and doesn't frame the image.

What should happen is that a caption frame be added to the image with a blank space as the caption. Without this behaviour, there is no way to get a caption frame around images without adding a caption.

Change History (5)

#1 @luffer
11 years ago

NOTE: This was tested using the default theme with no plugins.

#2 @greenshady
11 years ago

I'd assume this is by design. You can't caption something without an actual caption. If you just want a specific design for your image, you should go with a custom image class and style it with CSS.

#3 @Amit_k
11 years ago

Completely agree with @greenshady, Also there is a filter - img_caption_shortcode, which can be used to enforce the caption div even if the caption field is empty.

#4 @MikeHansenMe
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

I would agree as well.

#5 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.