[wp-trac] [WordPress Trac] #15694: Caption Shortcode I/O Intolerant of "]" Char

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 16 08:03:47 UTC 2011

#15694: Caption Shortcode I/O Intolerant of "]" Char
 Reporter:  miqrogroove   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Shortcodes    |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:                |

Comment (by solarissmoke):

 The problem is with the regex in `get_shortcode_regex()` which assumes
 that the first `]` it comes across is the end of a shortcode tag, and it
 ignores the rest, thus breaking things.

 For now I've added a note in the
 [http://codex.wordpress.org/Shortcode_API#Limitations codex] saying that
 the parser can't handle square brackets in attributes. Can't think of a
 way to fix this without making the regex a whole lot more complicated.

Ticket URL: <http://core.trac.wordpress.org/ticket/15694#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list