Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (16 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r11096 r11109  
    367367function get_user_to_edit( $user_id ) {
    368368    $user = new WP_User( $user_id );
    369     $user->user_login   = attribute_escape($user->user_login);
    370     $user->user_email   = attribute_escape($user->user_email);
     369    $user->user_login   = attr($user->user_login);
     370    $user->user_email   = attr($user->user_email);
    371371    $user->user_url     = clean_url($user->user_url);
    372     $user->first_name   = attribute_escape($user->first_name);
    373     $user->last_name    = attribute_escape($user->last_name);
    374     $user->display_name = attribute_escape($user->display_name);
    375     $user->nickname     = attribute_escape($user->nickname);
    376     $user->aim          = isset( $user->aim ) && !empty( $user->aim ) ? attribute_escape($user->aim) : '';
    377     $user->yim          = isset( $user->yim ) && !empty( $user->yim ) ? attribute_escape($user->yim) : '';
    378     $user->jabber       = isset( $user->jabber ) && !empty( $user->jabber ) ? attribute_escape($user->jabber) : '';
     372    $user->first_name   = attr($user->first_name);
     373    $user->last_name    = attr($user->last_name);
     374    $user->display_name = attr($user->display_name);
     375    $user->nickname     = attr($user->nickname);
     376    $user->aim          = isset( $user->aim ) && !empty( $user->aim ) ? attr($user->aim) : '';
     377    $user->yim          = isset( $user->yim ) && !empty( $user->yim ) ? attr($user->yim) : '';
     378    $user->jabber       = isset( $user->jabber ) && !empty( $user->jabber ) ? attr($user->jabber) : '';
    379379    $user->description  = isset( $user->description ) && !empty( $user->description ) ? wp_specialchars($user->description) : '';
    380380
Note: See TracChangeset for help on using the changeset viewer.