mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
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:
parent
402c4609ff
commit
56436d1ffc
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user