Skip to content

Commit

Permalink
Add a comment to get_shortcode_regex() mentioning its near clones els…
Browse files Browse the repository at this point in the history
…ewhere. see #21996.

git-svn-id: http://core.svn.wordpress.org/trunk@22005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Sep 26, 2012
1 parent 9186ea9 commit ab58782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wp-includes/shortcodes.php
Expand Up @@ -177,6 +177,7 @@ function get_shortcode_regex() {
$tagregexp = join( '|', array_map('preg_quote', $tagnames) );

// WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag()
// Also, see shortcode_unautop() and shortcode.js.
return
'\\[' // Opening bracket
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]]
Expand Down

0 comments on commit ab58782

Please sign in to comment.