diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php
index e5bc4a7627..34919fc08e 100644
--- a/wp-includes/class-oembed.php
+++ b/wp-includes/class-oembed.php
@@ -347,7 +347,7 @@ class WP_oEmbed {
}
}
- if ( $tagfound && preg_match_all( '/]+)>/i', $html, $links ) ) {
+ if ( $tagfound && preg_match_all( '#]+)/?>#iU', $html, $links ) ) {
foreach ( $links[1] as $link ) {
$atts = shortcode_parse_atts( $link );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index d3aceb1c52..c50cc538a5 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.2-alpha-31406';
+$wp_version = '4.2-alpha-31407';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.