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

    r11380 r11383  
    3131
    3232    $_POST['link_url'] = esc_html( $_POST['link_url'] );
    33     $_POST['link_url'] = clean_url($_POST['link_url']);
     33    $_POST['link_url'] = esc_url($_POST['link_url']);
    3434    $_POST['link_name'] = esc_html( $_POST['link_name'] );
    3535    $_POST['link_image'] = esc_html( $_POST['link_image'] );
    36     $_POST['link_rss'] = clean_url($_POST['link_rss']);
     36    $_POST['link_rss'] = esc_url($_POST['link_rss']);
    3737    if ( !isset($_POST['link_visible']) || 'N' != $_POST['link_visible'] )
    3838        $_POST['link_visible'] = 'Y';
     
    5555function get_default_link_to_edit() {
    5656    if ( isset( $_GET['linkurl'] ) )
    57         $link->link_url = clean_url( $_GET['linkurl']);
     57        $link->link_url = esc_url( $_GET['linkurl']);
    5858    else
    5959        $link->link_url = '';
Note: See TracChangeset for help on using the changeset viewer.