commit 7b30c661d8e6d7ca7991bfe1f5da09cca806ca22
Author: Christian Weiske <cweiske@cweiske.de>
Date: Mon Feb 2 20:53:40 2015 +0100
Fix oEmbed discovery for URLs with encoded entities
Fixes #31213.
diff --git src/wp-includes/class-oembed.php src/wp-includes/class-oembed.php
index e5bc4a7..4862039 100644
|
|
class WP_oEmbed { |
352 | 352 | $atts = shortcode_parse_atts( $link ); |
353 | 353 | |
354 | 354 | if ( !empty($atts['type']) && !empty($linktypes[$atts['type']]) && !empty($atts['href']) ) { |
355 | | $providers[$linktypes[$atts['type']]] = $atts['href']; |
| 355 | $providers[$linktypes[$atts['type']]] = htmlspecialchars_decode($atts['href']); |
356 | 356 | |
357 | 357 | // Stop here if it's JSON (that's all we need) |
358 | 358 | if ( 'json' == $linktypes[$atts['type']] ) |