-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gutenberg_render_block_core_template_part() should not call wpautop() #26731
Comments
I've reduced the problem to the simplest I can. To reproduce
WorkaroundRemove the blank between the two FixGutenberg's already tried to fix this problem. There's a comment in
Solution: don't call |
I've found another instance where
|
Following up here that this is still occurring in different areas - been trying to isolate different occurrences. |
Describe the bug
While attempting to develop a fix for another problem in
gutenberg_render_block_core_template_part()
I encountered situations wherewpautop()
has inadvertently added end paragraph tags into the generated HTML. These were causing unwanted blank areas in the browser.The problem is caused by
wpautop()
, which is not needed.Removing the call to
wpautop()
fixes the issue.To reproduce
Steps to reproduce the behavior:
One example is to include a navigation block.
</p>
tags in the page.Expected behavior
No unwanted
</p>
tags in the generated HTMLScreenshots
hex dump of the end of $content before wpautop()
hex dump of the end of $content after wpautop().
See the problem in bobbingwide/fizzie#20
Editor version (please complete the following information):
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: