Make WordPress Core

Ticket #33981: 33981.patch

File 33981.patch, 410 bytes (added by desrosj, 7 years ago)
  • src/wp-includes/media.php

     
    15801580
    15811581        $style = '';
    15821582        if ( $caption_width ) {
    1583                 $style = 'style="width: ' . (int) $caption_width . 'px" ';
     1583                $style = 'style="max-width: ' . (int) $caption_width . 'px" ';
    15841584        }
    15851585
    15861586        if ( $html5 ) {