From 56436d1ffc517ecf825dad366b1fd140c983b649 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 27 Feb 2009 17:01:59 +0000 Subject: [PATCH] Fix regression in shortcode behaviour. Fixes #9238 props tellyworth. git-svn-id: http://svn.automattic.com/wordpress/trunk@10658 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 602e7fa9d..45e144941 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -202,10 +202,10 @@ function do_shortcode_tag($m) { if ( isset($m[5]) ) { // enclosing tag - extra parameter - return $m[1] . call_user_func($shortcode_tags[$tag], $attr, $m[5]) . $m[6]; + return $m[1] . call_user_func($shortcode_tags[$tag], $attr, $m[5], $m[2]) . $m[6]; } else { // self-closing tag - return $m[1] . call_user_func($shortcode_tags[$tag], $attr) . $m[6]; + return $m[1] . call_user_func($shortcode_tags[$tag], $attr, NULL, $m[2]) . $m[6]; } }