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:
azaozz 2009-02-04 17:07:26 +00:00
parent 4aa67fce76
commit ca82eb1133
1 changed files with 1 additions and 1 deletions

View File

@ -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');