Adds empty paragraphs when switching tabs in text widget
-
I just recognized that in text widgets the plugin doesn’t work as expected – it seems like wpautop / wptexturize is still active here. If you enter two or more paragraphs in visual mode, it adds a linebreak after the closing
</p>
tags, instead of writing everything in one line. This repeats when switching between the visual and text tab, and the so generated empty lines get converted into<p> </p>
every time.I’ve tried to fix it with
remove_filter( 'widget_text_content', 'wpautop' );
andremove_filter( 'widget_text_content', 'wptexturize' );
in my custom themes, but had no success. Tested with WordPress 5.3, Twenty twenty theme and no other plugins active too – still an issue.As I’m using this plugin on every WordPress installation since about 8 years and had no problems instead of that, I would love to get rid of that issue. Maybe a good reason to remove that “not updated in 4 years” notice too? =)
Edit: I’ve set the “new line on enter” setting to paragrahps btw.
- The topic ‘Adds empty paragraphs when switching tabs in text widget’ is closed to new replies.