Make WordPress Core

Ticket #25896: 25896.diff

File 25896.diff, 621 bytes (added by nofearinc, 11 years ago)

adding a wp-video class to video shortcodes

  • wp-includes/media.php

     
    11481148                $html .= wp_mediaelement_fallback( $fileurl );
    11491149        $html .= '</video>';
    11501150
    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 );
    11521152        return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library );
    11531153}
    11541154add_shortcode( 'video', 'wp_video_shortcode' );