[wp-trac] [WordPress Trac] #28564: Shortcode Attributes with HTML Tags no longer working
WordPress Trac
noreply at wordpress.org
Thu Jun 26 13:38:26 UTC 2014
#28564: Shortcode Attributes with HTML Tags no longer working
------------------------------------------+-----------------------------
Reporter: baden03 | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 4.0
Component: Formatting | Version: trunk
Severity: major | Resolution:
Keywords: has-patch commit wptexturize | Focuses:
------------------------------------------+-----------------------------
Comment (by kitchin):
It's worth summarizing the big picture, I hope accurately.
We parse for shortcodes several times.
1. The first parse is when texturizing. To fix longstanding bugs, [28727]
improved finding shortcodes within the context of the surrounding html.
2. The second parse is to expand the shortcodes. The regex pattern here
has not changed. It is somewhat different than the regex in step 1, but
sane text should work in both.
The pattern in step 1 is aware of `<`, `>`, but unaware of `/`, and
unaware of registered shortcode names. The pattern in step 2 has the
opposite qualities.
The step 2 pattern is actually used twice, first to unwrap `<p>...</p>`
around standalone shortcodes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28564#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list