[wp-trac] [WordPress Trac] #40021: Empty p tags when adding multiple consecutive shortcodes in the editor.
WordPress Trac
noreply at wordpress.org
Thu Jul 18 07:16:49 UTC 2019
#40021: Empty p tags when adding multiple consecutive shortcodes in the editor.
--------------------------+-------------------------
Reporter: kmgalanakis | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Editor | Version: 4.7.2
Severity: normal | Resolution: maybelater
Keywords: | Focuses: ui
--------------------------+-------------------------
Changes (by noisysocks):
* status: new => closed
* resolution: => maybelater
* milestone: Awaiting Review =>
Comment:
It looks like `shortcode_unautop()` is supposed to remove those `<p>`
tags, but it only supports removing a single shortcode. To fix this, we
could modify `shortcode_unautop()` to remove multiple shortcodes. Such a
patch would have to include lots of unit tests because the combination of
shortcodes and autop is very scary.
This is not a priority as the block editor makes both shortcodes and autop
largely obsolete, but I'd be happy to see this ticket re-opened if someone
wants to submit a patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40021#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list