Pass tag name when using shortcodes. Props Viper007Bond. fixes #6606
git-svn-id: https://develop.svn.wordpress.org/trunk@8613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da4e0eca48
commit
9c42d17153
@ -188,10 +188,10 @@ function do_shortcode_tag($m) {
|
||||
|
||||
if ( isset($m[4]) ) {
|
||||
// enclosing tag - extra parameter
|
||||
return call_user_func($shortcode_tags[$tag], $attr, $m[4]);
|
||||
return call_user_func($shortcode_tags[$tag], $attr, $m[4], $tag);
|
||||
} else {
|
||||
// self-closing tag
|
||||
return call_user_func($shortcode_tags[$tag], $attr);
|
||||
return call_user_func($shortcode_tags[$tag], $attr, NULL, $tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user