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:
parent
7b30193bb7
commit
a017516291
|
@ -1565,10 +1565,10 @@ function img_caption_shortcode( $attr, $content = null ) {
|
||||||
$caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content );
|
$caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content );
|
||||||
|
|
||||||
$style = '';
|
$style = '';
|
||||||
if ( $caption_width )
|
if ( $caption_width ) {
|
||||||
$style = 'style="width: ' . (int) $caption_width . 'px" ';
|
$style = 'style="width: ' . (int) $caption_width . 'px" ';
|
||||||
|
}
|
||||||
|
|
||||||
$html = '';
|
|
||||||
if ( $html5 ) {
|
if ( $html5 ) {
|
||||||
$html = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
|
$html = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
|
||||||
. do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>';
|
. do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue