WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/18/2009 04:00:33 PM (12 years ago)
Author:
markjaquith
Message:

Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r11380 r11383  
    195195    $template_dir = $themes[$theme_name]['Template Dir'];
    196196    $parent_theme = $themes[$theme_name]['Parent Theme'];
    197     $preview_link = clean_url( get_option('home') . '/');
     197    $preview_link = esc_url( get_option('home') . '/');
    198198    $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) );
    199199    $preview_text = esc_attr( sprintf( __('Preview of “%s”'), $title ) );
Note: See TracChangeset for help on using the changeset viewer.