From 2c12dc0ce34b03a36792447775804eaf7ebd7869 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 10 Feb 2015 23:36:51 +0000 Subject: [PATCH] oEmbed discovery fails on XHTML head links, adjust the regex to not match `/`. Props cweiske. Fixes #31212. git-svn-id: https://develop.svn.wordpress.org/trunk@31407 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index e5bc4a7627..34919fc08e 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/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 );