diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 294779bdce..d5d3d77d04 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1565,10 +1565,10 @@ function img_caption_shortcode( $attr, $content = null ) { $caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content ); $style = ''; - if ( $caption_width ) + if ( $caption_width ) { $style = 'style="width: ' . (int) $caption_width . 'px" '; + } - $html = ''; if ( $html5 ) { $html = '
' . do_shortcode( $content ) . '
' . $atts['caption'] . '
';