Make WordPress Core

Opened 5 weeks ago

Last modified 7 days ago

#48052 new defect (bug)

<center> tag around [video] inserts &nbsp and new lines every post update (or even switch between source and post)

Reported by: archon810 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: needs-patch
Focuses: Cc:
PR Number:


This only seems to happen in the classic editor, which is what we're using and planning on using for years to come. The only active plugin in my test is Classic Editor https://wordpress.org/plugins/classic-editor/. Stock WP 2019 theme.

Tested with 5.2.3 and github master HEAD.

Example code:

<center>[video width="524" height="1080" mp4="https://example.com/wp-content/uploads/2019/09/test.mp4"][/video]</center>

If you switch between Visual and Text, you'll start seeing new lines with &nbsp;s added, like so:

<center>[video width="524" height="1080" mp4="https://example.com/wp-content/uploads/2019/09/test.mp4"][/video]




Attachments (1)

gif.gif (355.2 KB) - added by archon810 5 weeks ago.
screencast of the bug

Download all attachments as: .zip

Change History (3)

5 weeks ago

screencast of the bug

#1 @archon810
5 weeks ago

A few ccs for visibility: @SergeyBiryukov @birgire @pento.

The issue was brought up to me by one of our editors who got frustrated with having to delete extra unexpected added lines in his posts with centered [video]s.

#2 @andraganescu
7 days ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

I can confirm this bug and that it only happens with the center tag.

Last edited 7 days ago by andraganescu (previous) (diff)
Note: See TracTickets for help on using tickets.