
Property changes on: .
___________________________________________________________________
Added: svn:ignore
   + .pluggable.php.swp


Index: pluggable.php
===================================================================
--- pluggable.php	(revision 24993)
+++ pluggable.php	(working copy)
@@ -1419,7 +1419,7 @@
 		$wp_hasher = new PasswordHash(8, true);
 	}
 
-	return $wp_hasher->HashPassword($password);
+	return $wp_hasher->HashPassword(trim($password));
 }
 endif;
 
@@ -1566,7 +1566,7 @@
 function wp_set_password( $password, $user_id ) {
 	global $wpdb;
 
-	$hash = wp_hash_password( trim( $password ) );
+	$hash = wp_hash_password( $password );
 	$wpdb->update($wpdb->users, array('user_pass' => $hash, 'user_activation_key' => ''), array('ID' => $user_id) );
 
 	wp_cache_delete($user_id, 'users');
