commit 92e569c4c404860f78970b00c418c3e1bc4fe57c
Author: Christian Weiske <cweiske@cweiske.de>
Date: Mon Feb 2 20:47:46 2015 +0100
Fix oEmbed discovery on XHTML pages
Strip trailing slash on empty (self-closing) link elements to
make `shortcode_parse_atts` work.
Fixes #31212.
diff --git src/wp-includes/class-oembed.php src/wp-includes/class-oembed.php
index e5bc4a7..34919fc 100644
|
|
class WP_oEmbed { |
347 | 347 | } |
348 | 348 | } |
349 | 349 | |
350 | | if ( $tagfound && preg_match_all( '/<link([^<>]+)>/i', $html, $links ) ) { |
| 350 | if ( $tagfound && preg_match_all( '#<link([^<>]+)/?>#iU', $html, $links ) ) { |
351 | 351 | foreach ( $links[1] as $link ) { |
352 | 352 | $atts = shortcode_parse_atts( $link ); |
353 | 353 | |