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

    r11380 r11383  
    9292            $user->user_url = '';
    9393        } else {
    94             $user->user_url = clean_url( trim( $_POST['url'] ));
     94            $user->user_url = esc_url( trim( $_POST['url'] ));
    9595            $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url;
    9696        }
     
    373373    $user->user_login   = esc_attr($user->user_login);
    374374    $user->user_email   = esc_attr($user->user_email);
    375     $user->user_url     = clean_url($user->user_url);
     375    $user->user_url     = esc_url($user->user_url);
    376376    $user->first_name   = esc_attr($user->first_name);
    377377    $user->last_name    = esc_attr($user->last_name);
Note: See TracChangeset for help on using the changeset viewer.