Self-close embed tag for googlevideo embed handler. props pross, fixes #14230.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-12 11:17:35 +00:00
parent fd4b0965f8
commit 3f7374b8e6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] ); list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] );
} }
return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always"></embed>', $matches, $attr, $url, $rawattr ); return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr );
} }
wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' ); wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' );