WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/13/2010 10:35:10 AM (12 years ago)
Author:
nacin
Message:

Don't use deprecated functions. see #11388

File:
1 edited

Legend:

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

    r12928 r13106  
    7171    if ( $new_email[ 'hash' ] == $_GET[ 'newuseremail' ] ) {
    7272        $user->ID = $current_user->ID;
    73         $user->user_email = wp_specialchars( trim( $new_email[ 'newemail' ] ) );
     73        $user->user_email = esc_html( trim( $new_email[ 'newemail' ] ) );
    7474        if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $current_user->user_login ) ) )
    7575            $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->signups} SET user_email = %s WHERE user_login = %s", $user->user_email, $current_user->user_login ) );
Note: See TracChangeset for help on using the changeset viewer.