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/feed.php

    r11380 r11383  
    256256 */
    257257function comment_link() {
    258     echo clean_url( get_comment_link() );
     258    echo esc_url( get_comment_link() );
    259259}
    260260
     
    504504    $host = @parse_url(get_option('home'));
    505505    $host = $host['host'];
    506     echo clean_url(
     506    echo esc_url(
    507507        'http'
    508508        . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
Note: See TracChangeset for help on using the changeset viewer.