From 356bf5d9c26d02699f81a4b92e3693b9937e5aaf Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 2 Dec 2013 16:31:57 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@26526 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 14972380c8..183d7315cc 100644 --- a/src/wp-includes/media.php +++ b/src/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' );