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:
Ryan Boren 2008-08-11 04:00:33 +00:00
parent da4e0eca48
commit 9c42d17153
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}