Changeset 11204 for trunk/wp-admin/includes/user.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r11190 r11204 367 367 function get_user_to_edit( $user_id ) { 368 368 $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); 371 371 $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) : ''; 379 379 $user->description = isset( $user->description ) && !empty( $user->description ) ? wp_specialchars($user->description) : ''; 380 380
Note: See TracChangeset
for help on using the changeset viewer.