From 4f8c251c453061935f5743b295071abe72853a6c Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 11 Feb 2015 16:12:48 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index 34919fc08e..f5b558b322 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -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']] )