[wp-trac] [WordPress Trac] #28564: Shortcode Attributes with HTML Tags no longer working
WordPress Trac
noreply at wordpress.org
Tue Jun 17 21:30:17 UTC 2014
#28564: Shortcode Attributes with HTML Tags no longer working
--------------------------+--------------------
Reporter: baden03 | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 4.0
Component: Formatting | Version: trunk
Severity: major | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Changes (by miqrogroove):
* keywords: needs-patch => has-patch
Comment:
Good news. My regexp was more resilient at separating HTML and shortcodes
on a left-to-right basis than the old one. We can allow HTML within
shortcodes. Shortcodes within shortcodes was the main problem. As azaozz
mentioned on #15694, the {{{[}}} and {{{]}}} characters must be encoded as
HTML entities any time they appear inside of any shortcode. This is
almost never accomplished, which is why it's so tricky to separate the
bugs.
In miqro-28564.patch:
* Allow HTML inside of shortcode attributes for wptexturize.
* Continue to ignore the [ char if it appears in any HTML attribute.
* Allow the ] char to corrupt any HTML element that appears after a [
char, as in 3.9.
* Update related patterns.
* Update unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28564#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list