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

WordPress Trac noreply at wordpress.org
Tue Jun 17 15:47:58 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:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by SergeyBiryukov):

 Replying to [comment:3 miqrogroove]:
 > The ultimate example is what happens if this "expand" shortcode contains
 HTML with square brackets?
 >
 > {{{[expand title="<a href='http://example.com/?a[]=12345'>Hello
 World</a>"]}}}

 I think square brackets should be encoded in this case:
 {{{
 [expand title="<a href='http://example.com/?a%5B%5D=12345'>Hello
 World</a>"]
 }}}

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


More information about the wp-trac mailing list