Make WordPress Core

Changeset 38309


Ignore:
Timestamp:
08/22/2016 08:52:44 PM (8 years ago)
Author:
wonderboymusic
Message:

Media: remove unnecessary variable assignment in gallery_shortcode().

See #37771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r38303 r38309  
    15661566
    15671567    $style = '';
    1568     if ( $caption_width )
     1568    if ( $caption_width ) {
    15691569        $style = 'style="width: ' . (int) $caption_width . 'px" ';
    1570 
    1571     $html = '';
     1570    }
     1571
    15721572    if ( $html5 ) {
    15731573        $html = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
Note: See TracChangeset for help on using the changeset viewer.