From bc47e0cb3ad166edff0d16afbf388c956e379f31 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 26 Sep 2012 01:16:31 +0000 Subject: [PATCH] Add a comment to get_shortcode_regex() mentioning its near clones elsewhere. see #21996. git-svn-id: https://develop.svn.wordpress.org/trunk@22005 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/shortcodes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 1b860d2766..e1722f5236 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -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]]