Allow shortcodes inside caption boxes, props Viper007Bond, fixes #9022

git-svn-id: https://develop.svn.wordpress.org/trunk@10498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-02-04 17:07:26 +00:00
parent 989c0b4536
commit e29eda95c4
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');