From e02f178aa0d90145ea1ff0b5f67e261856418651 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 Aug 2008 04:00:33 +0000 Subject: [PATCH] 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 --- wp-includes/shortcodes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 66bdfb39d..c1c6862ba 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -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); } }