Make WordPress Core

Ticket #33981: 33981-ar.patch

File 33981-ar.patch, 418 bytes (added by aaronrutley, 6 years ago)
  • src/wp-includes/media.php

     
    13931393
    13941394        $style = '';
    13951395        if ( $caption_width )
    1396                 $style = 'style="width: ' . (int) $caption_width . 'px" ';
     1396                $style = 'style="max-width: ' . (int) $caption_width . 'px" ';
    13971397
    13981398        $html = '';
    13991399        if ( $html5 ) {