This was sent to me by my friend Jeff McClure to submit.
Below is a really simple patch against wp-login.php
which fixes a bug in the "I forgot my password"
routine. The bug causes WP to look like it changes the
password, but it really doesn't (and the email it sends
ends up with a null user id). This patch is against
1.2. It's so small, I'm not even going to bother
attaching it as a file.
--- wp-login.php 2004-05-26 13:05:13.000000000 -0500
+++ wp-login.php.new 2004-05-26 13:20:45.000000000 -0500
@@ -201,7 +201,7 @@
$user_login = $_POST["user_login"];
$user_data = get_userdatabylogin($user_login);
// redefining user_login ensures we return the
right case in the email
- $user_login = $user_data['user_login'];
+ $user_login = $user_data->user_login;
$user_email = $user_data->user_email;
if (!$user_email || $user_email !=
$_POST['email']) die(sprintf(__('Sorry, that user does
not seem to exist in our database. Perhaps you have the
wrong username or email address? <a href="%s">Try
Log in to post a comment.