oEmbed discovery fails on encoded link URLs: decode HTML chars in the HTML-encoded URLs that are returned.

Props cweiske.
Fixes #31213.


git-svn-id: https://develop.svn.wordpress.org/trunk@31413 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-02-11 16:12:48 +00:00
parent 5d35c181dc
commit 4f8c251c45
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class WP_oEmbed {
$atts = shortcode_parse_atts( $link );
if ( !empty($atts['type']) && !empty($linktypes[$atts['type']]) && !empty($atts['href']) ) {
$providers[$linktypes[$atts['type']]] = $atts['href'];
$providers[$linktypes[$atts['type']]] = htmlspecialchars_decode( $atts['href'] );
// Stop here if it's JSON (that's all we need)
if ( 'json' == $linktypes[$atts['type']] )