Make WordPress Core

Changeset 31413


Ignore:
Timestamp:
02/11/2015 04:12:48 PM (10 years ago)
Author:
wonderboymusic
Message:

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

Props cweiske.
Fixes #31213.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r31407 r31413  
    353353
    354354                    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'] );
    356356
    357357                        // Stop here if it's JSON (that's all we need)
Note: See TracChangeset for help on using the changeset viewer.