mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-03 05:02:52 +00:00
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
This commit is contained in:
parent
296078b422
commit
2c12dc0ce3
@ -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 );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user