[wp-trac] [WordPress Trac] #45493: Square brackets in caption shortcode produce improper formatting
WordPress Trac
noreply at wordpress.org
Thu Mar 26 06:48:01 UTC 2020
#45493: Square brackets in caption shortcode produce improper formatting
-------------------------------------+-----------------------------
Reporter: Christian1012 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Future Release
Component: Editor | Version: 4.9.8
Severity: normal | Resolution: invalid
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Changes (by Christian1012):
* keywords: has-patch reporter-feedback needs-testing => has-patch needs-
testing
* status: new => closed
* resolution: => invalid
Comment:
Sorry this was a while ago. The patch I attached adds support for escaping
brackets inside shortcodes, using the escaping method introduced in #6518.
{{{
[shortcode] Double brackets are [[escaped]] with entities. [/shortcode]
}}}
I tested the original patch, still seems to work for me, as long as you
double escape. Adding an updated patch with proper formatting.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45493#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list