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-includes/theme.php

    r11204 r11383  
    186186
    187187    if ( preg_match( '|Theme URI:(.*)$|mi', $theme_data, $theme_uri ) )
    188         $theme_uri = clean_url( _cleanup_header_comment($theme_uri[1]) );
     188        $theme_uri = esc_url( _cleanup_header_comment($theme_uri[1]) );
    189189    else
    190190        $theme_uri = '';
     
    196196
    197197    if ( preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri ) )
    198         $author_uri = clean_url( _cleanup_header_comment($author_uri[1]) );
     198        $author_uri = esc_url( _cleanup_header_comment($author_uri[1]) );
    199199    else
    200200        $author_uri = '';
Note: See TracChangeset for help on using the changeset viewer.