Add a `wp-video` class to the `div` that wraps video shortcode output. It was previously hard to target.

Props nofearinc.
Fixes #25896.



git-svn-id: https://develop.svn.wordpress.org/trunk@26526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2013-12-02 16:31:57 +00:00
parent fdcf1f4c12
commit 356bf5d9c2
1 changed files with 1 additions and 1 deletions

View File

@ -1148,7 +1148,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
$html .= wp_mediaelement_fallback( $fileurl );
$html .= '</video>';
$html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html );
$html = sprintf( '<div style="width: %dpx; max-width: 100%%;" class="wp-video">%s</div>', $width, $html );
return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library );
}
add_shortcode( 'video', 'wp_video_shortcode' );