Make WordPress Core


Ignore:
Timestamp:
02/22/2010 06:15:10 PM (15 years ago)
Author:
nacin
Message:

Use esc_url() instead of clean_url(). See #12309

File:
1 edited

Legend:

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

    r13275 r13297  
    216216
    217217                $title = ( !empty($data->title) ) ? $data->title : '';
    218                 $return = '<img src="' . esc_attr( clean_url( $data->url ) ) . '" alt="' . esc_attr($title) . '" width="' . esc_attr($data->width) . '" height="' . esc_attr($data->height) . '" />';
     218                $return = '<img src="' . esc_url( $data->url ) . '" alt="' . esc_attr($title) . '" width="' . esc_attr($data->width) . '" height="' . esc_attr($data->height) . '" />';
    219219                break;
    220220
     
    225225
    226226            case 'link':
    227                 $return = ( !empty($data->title) ) ? '<a href="' . clean_url($url) . '">' . esc_html($data->title) . '</a>' : false;
     227                $return = ( !empty($data->title) ) ? '<a href="' . esc_url($url) . '">' . esc_html($data->title) . '</a>' : false;
    228228                break;
    229229
Note: See TracChangeset for help on using the changeset viewer.