Unescape ampersands before making an oEmbed request. props Viper007Bond, fixes #14514, see #11311.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-05 02:23:17 +00:00
parent 2955ecbc55
commit d0098e51bb
1 changed files with 4 additions and 0 deletions

View File

@ -1158,6 +1158,10 @@ class WP_Embed {
$rawattr = $attr;
$attr = wp_parse_args( $attr, wp_embed_defaults() );
// kses converts & into & and we need to undo this
// See http://core.trac.wordpress.org/ticket/11311
$url = str_replace( '&', '&', $url );
// Look for known internal handlers
ksort( $this->handlers );
foreach ( $this->handlers as $priority => $handlers ) {