Pass tag name when using shortcodes. Props Viper007Bond. fixes #6606

git-svn-id: http://svn.automattic.com/wordpress/trunk@8613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-11 04:00:33 +00:00
parent ff7b8ffe1b
commit e02f178aa0
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);
}
}