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

WordPress Trac noreply at wordpress.org
Fri Apr 9 12:02:33 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:  5.7.1
Component:  Editor           |     Version:  5.7
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [comment:23 pixelverbieger]:
 > All of you stating that these empty p tags have been there before - can
 you spot them in my database?

 They are generally added by the
 [https://developer.wordpress.org/reference/functions/wpautop/ wpautop()]
 function at runtime and are not stored in the database.

 > Screenshots were taken with a child theme we use on several dozens of
 websites. We haven't had these problems so far and it is no option to edit
 all the websites we take care of (approx. 200) …

 The fix is already made upstream in GB29809 and should be a part of WP
 5.7.1.

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


More information about the wp-trac mailing list