From e86b10131b3a00d3c7967e7c7621e012baea612e Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 2 Dec 2013 16:32:10 +0000 Subject: [PATCH] Add a `wp-video` class to the `div` that wraps video shortcode output. It was previously hard to target. Props nofearinc. Fixes #25896. Built from https://develop.svn.wordpress.org/trunk@26526 git-svn-id: http://core.svn.wordpress.org/trunk@26419 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 14972380c8..183d7315cc 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1148,7 +1148,7 @@ function wp_video_shortcode( $attr, $content = '' ) { $html .= wp_mediaelement_fallback( $fileurl ); $html .= ''; - $html = sprintf( '
%s
', $width, $html ); + $html = sprintf( '
%s
', $width, $html ); return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); } add_shortcode( 'video', 'wp_video_shortcode' );