Allow shortcodes inside caption boxes, props Viper007Bond, fixes #9022
git-svn-id: http://svn.automattic.com/wordpress/trunk@10498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4aa67fce76
commit
ca82eb1133
|
@ -578,7 +578,7 @@ function img_caption_shortcode($attr, $content = null) {
|
|||
if ( $id ) $id = 'id="' . $id . '" ';
|
||||
|
||||
return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
|
||||
. $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
|
||||
. do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>';
|
||||
}
|
||||
|
||||
add_shortcode('gallery', 'gallery_shortcode');
|
||||
|
|
Loading…
Reference in New Issue