From 9c42d17153da208a01add4a090ecb4fd45003925 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 11 Aug 2008 04:00:33 +0000 Subject: [PATCH] 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 --- 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 66bdfb39d4..c1c6862ba2 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); } }