[wp-trac] [WordPress Trac] #27907: Shortcode double brackets ending on newline breaks post editor
WordPress Trac
noreply at wordpress.org
Sat Apr 19 17:24:46 UTC 2014
#27907: Shortcode double brackets ending on newline breaks post editor
-----------------------------------+-----------------------------
Reporter: Clorith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9.1
Component: TinyMCE | Version: 3.9
Severity: major | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: administration
-----------------------------------+-----------------------------
Changes (by Clorith):
* keywords: needs-patch => has-patch 2nd-opinion
Comment:
Attempting a solution for this by stopping the attempt at slicing if there
is no `result.match`.
As the bug only appears to affect shortcodes with in-editor rendering,
this would allow the user to easily spot it and edit accordingly as
preventing this slicing makes the shortcode render (which would be the
correct behavior, as it's not a properly escaped shortcode to begin with).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27907#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list