[wp-trac] [WordPress Trac] #28564: Shortcode Attributes with HTML Tags no longer working

WordPress Trac noreply at wordpress.org
Wed Jun 25 12:38:48 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 miqrogroove):

 Replying to [comment:22 kitchin]:
 > I'm not sure why we're texturizing shortcode attributes at all. The
 problem in comment:3 is solved by searching left to right for the next
 `]`, since we later agreed `[` and `]` must be escaped within a shortcode.

 Um yeah, we didn't agree on that, because in practice that never actually
 happens.  Even most internal uses of shortcodes won't escape attribute
 text.

 > There is an attribute "div_selector" with default value "> div.slide".
 So the shortcode above should be equivalent to:

 Okay I got that, but I have to go back to my last point.  You can't put
 that anywhere else in a post.  Ever.  It's a matter of chance that the
 shortcode parser even allows this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28564#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list