Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (16 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

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

    r11190 r11204  
    367367function get_user_to_edit( $user_id ) {
    368368    $user = new WP_User( $user_id );
    369     $user->user_login   = attr($user->user_login);
    370     $user->user_email   = attr($user->user_email);
     369    $user->user_login   = esc_attr($user->user_login);
     370    $user->user_email   = esc_attr($user->user_email);
    371371    $user->user_url     = clean_url($user->user_url);
    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) : '';
     372    $user->first_name   = esc_attr($user->first_name);
     373    $user->last_name    = esc_attr($user->last_name);
     374    $user->display_name = esc_attr($user->display_name);
     375    $user->nickname     = esc_attr($user->nickname);
     376    $user->aim          = isset( $user->aim ) && !empty( $user->aim ) ? esc_attr($user->aim) : '';
     377    $user->yim          = isset( $user->yim ) && !empty( $user->yim ) ? esc_attr($user->yim) : '';
     378    $user->jabber       = isset( $user->jabber ) && !empty( $user->jabber ) ? esc_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.