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:
parent
ff7b8ffe1b
commit
e02f178aa0
|
@ -188,10 +188,10 @@ function do_shortcode_tag($m) {
|
||||||
|
|
||||||
if ( isset($m[4]) ) {
|
if ( isset($m[4]) ) {
|
||||||
// enclosing tag - extra parameter
|
// 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 {
|
} else {
|
||||||
// self-closing tag
|
// 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