mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
oEmbed discovery fails on XHTML head links, adjust the regex to not match /
.
Props cweiske. Fixes #31212. Built from https://develop.svn.wordpress.org/trunk@31407 git-svn-id: http://core.svn.wordpress.org/trunk@31388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64e19e98a3
commit
3cd585a457
@ -347,7 +347,7 @@ class WP_oEmbed {
|
||||
}
|
||||
}
|
||||
|
||||
if ( $tagfound && preg_match_all( '/<link([^<>]+)>/i', $html, $links ) ) {
|
||||
if ( $tagfound && preg_match_all( '#<link([^<>]+)/?>#iU', $html, $links ) ) {
|
||||
foreach ( $links[1] as $link ) {
|
||||
$atts = shortcode_parse_atts( $link );
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user