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:
parent
989c0b4536
commit
e29eda95c4
@ -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
Block a user