WordPress.org

Make WordPress Core

Ticket #49601: 49601.diff

File 49601.diff, 410 bytes (added by joelhardi, 3 months ago)
  • src/wp-includes/media.php

     
    17861786        $style = '';
    17871787
    17881788        if ( $caption_width ) {
    1789                 $style = 'style="width: ' . (int) $caption_width . 'px" ';
     1789                $style = 'style="max-width: ' . (int) $caption_width . 'px" ';
    17901790        }
    17911791
    17921792        if ( $html5 ) {