diff --git a/wp-includes/media.php b/wp-includes/media.php index 9afb105268..6e597a9460 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1578,7 +1578,7 @@ function img_caption_shortcode( $attr, $content = null ) { $style = ''; if ( $caption_width ) { - $style = 'style="max-width: ' . (int) $caption_width . 'px" '; + $style = 'style="width: ' . (int) $caption_width . 'px" '; } if ( $html5 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index f833ffc6b9..e2c7d95b60 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.5-alpha-42831'; +$wp_version = '4.9.5-alpha-42838'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.