WordPress.org

Make WordPress Core

Opened 16 months ago

Last modified 16 months ago

#50863 new defect (bug)

[playlist] + text = </p> error

Reported by: hvar Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4.2
Component: Formatting Keywords: needs-patch needs-unit-tests
Focuses: administration, template Cc:

Description

There is a bug that is very simple to reproduce -
if you create a [playlist] and then add some text, such as
[playlist ids="1,2,3"] Hey everyone, check out my new songs!

it will produce an html parsing error where </p> element is closed, but never opened.

Thank you

Change History (1)

#1 @SergeyBiryukov
16 months ago

  • Component changed from Media to Formatting
  • Keywords needs-unit-tests added

Hi there, welcome back to WordPress Trac! Thanks for the report.

This appears to be an issue with the wpautop() function, so I'm moving the ticket to the Formatting component.

Note: See TracTickets for help on using tickets.