WordPress.org

Make WordPress Core

Ticket #24134: 24134.diff

File 24134.diff, 566 bytes (added by kovshenin, 2 years ago)
  • wp-includes/media.php

     
    10401040                $html .= wp_mediaelement_fallback( $fileurl, $width, $height ); 
    10411041        $html .= '</video>'; 
    10421042 
     1043        $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 
    10431044        return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id ); 
    10441045} 
    10451046add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ) );