Media: remove unnecessary variable assignment in `gallery_shortcode()`.

See #37771.

Built from https://develop.svn.wordpress.org/trunk@38309


git-svn-id: http://core.svn.wordpress.org/trunk@38250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2016-08-22 20:53:29 +00:00
parent 7b30193bb7
commit a017516291
2 changed files with 3 additions and 3 deletions

View File

@ -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 = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
. do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>';

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38308';
$wp_version = '4.7-alpha-38309';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.