Make WordPress Core

Changeset 23322


Ignore:
Timestamp:
01/22/2013 04:38:32 PM (12 years ago)
Author:
nacin
Message:

Use correct escaping function. props duck_.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/class-wp-embed.php

    r22369 r23322  
    271271     */
    272272    function maybe_make_link( $url ) {
    273         $output = ( $this->linkifunknown ) ? '<a href="' . esc_attr($url) . '">' . esc_html($url) . '</a>' : $url;
     273        $output = ( $this->linkifunknown ) ? '<a href="' . esc_url($url) . '">' . esc_html($url) . '</a>' : $url;
    274274        return apply_filters( 'embed_maybe_make_link', $output, $url );
    275275    }
Note: See TracChangeset for help on using the changeset viewer.