Ticket #25896: 25896.diff
File 25896.diff, 621 bytes (added by , 11 years ago) |
---|
-
wp-includes/media.php
1148 1148 $html .= wp_mediaelement_fallback( $fileurl ); 1149 1149 $html .= '</video>'; 1150 1150 1151 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;" >%s</div>', $width, $html );1151 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;" class="wp-video">%s</div>', $width, $html ); 1152 1152 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1153 1153 } 1154 1154 add_shortcode( 'video', 'wp_video_shortcode' );