Make WordPress Core

Opened 2 years ago

Last modified 9 months ago

#21848 new defect (bug)

A single space in the image caption breaks alignment

Reported by: luffer Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.4.2
Component: Media Keywords:
Focuses: Cc:


If you add just a single space in the caption field of an image using the media uploader, it ignores any alignment settings.

The expected behaviour would mean that regardless of what is entered into the caption box, the image alignment should be honoured.

Change History (2)

comment:2 @ericlewis9 months ago

  • Severity changed from normal to trivial

@luffer thanks for the bug report! I can reproduce, but this is trivial.

Maybe we should be trim()ing captions on change in the media modal? Are there use cases where folks want untrimmed captions?

Note: See TracTickets for help on using tickets.