WordPress.org

Make WordPress Core

Changeset 31407


Ignore:
Timestamp:
02/10/2015 11:36:51 PM (7 years ago)
Author:
wonderboymusic
Message:

oEmbed discovery fails on XHTML head links, adjust the regex to not match /.

Props cweiske.
Fixes #31212.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r31148 r31407  
    348348            }
    349349
    350             if ( $tagfound && preg_match_all( '/<link([^<>]+)>/i', $html, $links ) ) {
     350            if ( $tagfound && preg_match_all( '#<link([^<>]+)/?>#iU', $html, $links ) ) {
    351351                foreach ( $links[1] as $link ) {
    352352                    $atts = shortcode_parse_atts( $link );
Note: See TracChangeset for help on using the changeset viewer.