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
This commit is contained in:
parent
c133581a81
commit
bc47e0cb3a
|
@ -177,6 +177,7 @@ function get_shortcode_regex() {
|
||||||
$tagregexp = join( '|', array_map('preg_quote', $tagnames) );
|
$tagregexp = join( '|', array_map('preg_quote', $tagnames) );
|
||||||
|
|
||||||
// WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag()
|
// WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag()
|
||||||
|
// Also, see shortcode_unautop() and shortcode.js.
|
||||||
return
|
return
|
||||||
'\\[' // Opening bracket
|
'\\[' // Opening bracket
|
||||||
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]]
|
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]]
|
||||||
|
|
Loading…
Reference in New Issue