Make WordPress Core


Ignore:
Timestamp:
10/07/2013 01:53:09 PM (11 years ago)
Author:
nacin
Message:

Move the trim() from wp_set_password() to inside wp_hash_password().

props rpattillo, joehoyle.
fixes #24973. see #23494.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r25550 r25709  
    14571457    }
    14581458
    1459     return $wp_hasher->HashPassword($password);
     1459    return $wp_hasher->HashPassword( trim( $password ) );
    14601460}
    14611461endif;
     
    16041604    global $wpdb;
    16051605
    1606     $hash = wp_hash_password( trim( $password ) );
     1606    $hash = wp_hash_password( $password );
    16071607    $wpdb->update($wpdb->users, array('user_pass' => $hash, 'user_activation_key' => ''), array('ID' => $user_id) );
    16081608
Note: See TracChangeset for help on using the changeset viewer.