[wp-trac] [WordPress Trac] #52764: Classic editor adding empty <p></p> tags in some media embed situations

WordPress Trac noreply at wordpress.org
Wed Mar 10 21:16:14 UTC 2021


#52764: Classic editor adding empty <p></p> tags in some media embed situations
-----------------------------+------------------------------
 Reporter:  jonathanstegall  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Editor           |     Version:  5.7
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by jonathanstegall):

 After reinstalling 5.6.2 a few times, I think I'm starting to realize that
 (at least in some cases) this empty `<p></p>` was already there, seemingly
 because the `<figure>` is getting put inside a paragraph and the browser
 (as usual) renders it as an empty paragraph instead. But in previous
 versions the empty paragraph didn't have CSS to make it visible. In 5.7
 there is maybe new CSS that makes it visually apparent when it wasn't
 before.

 Am I correct on this?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52764#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list