[wp-trac] [WordPress Trac] #52833: Invalid html output from wpautop
WordPress Trac
noreply at wordpress.org
Wed Mar 17 17:15:29 UTC 2021
#52833: Invalid html output from wpautop
--------------------------+------------------------
Reporter: heretik | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version: 5.7
Severity: normal | Resolution: duplicate
Keywords: | Focuses: template
--------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Hi there, welcome to WordPress Trac! Thanks for the report.
This appears to be the same issue as in #18136 and #43387, which has the
same root as in #27350, so I would suggest following that latter ticket to
continue the discussion.
Just to clarify, these extra `</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/52833#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list