[wp-trac] [WordPress Trac] #52866: Extraneous <p> tag with :before pseudo element.

WordPress Trac noreply at wordpress.org
Fri Mar 19 15:45:21 UTC 2021

#52866: Extraneous <p> tag with :before pseudo element.
 Reporter:  tagonline     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  5.7
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:  ui
Changes (by SergeyBiryukov):

 * keywords:  needs-patch =>
 * resolution:   => duplicate
 * status:  new => closed
 * component:  General => Editor
 * milestone:  Awaiting Review =>


 Hi there, welcome to WordPress Trac!

 Thanks for the report, we're already tracking this issue in #52764.

 Just to clarify, these extra `<p></p>` tags are not new in 5.7, but they
 are visible now in some scenarios where they were previously hidden. This
 is being tracked in #52764 for WordPress 5.7.1, see comment:8:ticket:52764
 and later comments for some more context.

 As a workaround, this snippet can be added to Appearance → Customize →
 Additional CSS:
 body p:empty:before {
         content: none;

Ticket URL: <https://core.trac.wordpress.org/ticket/52866#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list