From 0dcc38a1ef54c379fb8326170c7fa52feb3ebd38 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 22 Aug 2016 20:52:44 +0000 Subject: [PATCH] Media: remove unnecessary variable assignment in `gallery_shortcode()`. See #37771. git-svn-id: https://develop.svn.wordpress.org/trunk@38309 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] . '
';