Fix regression in shortcode behaviour. Fixes #9238 props tellyworth.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-02-27 17:01:59 +00:00
parent 402c4609ff
commit 56436d1ffc
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}
}