Make WordPress Core

Ticket #7344: wp-login-diff.txt

File wp-login-diff.txt, 906 bytes (added by axelseaa, 17 years ago)
Line 
1Index: wp-login.php
2===================================================================
3--- wp-login.php        (revision 8371)
4+++ wp-login.php        (working copy)
5@@ -129,6 +129,11 @@
6        do_action('retreive_password', $user_login);  // Misspelled and deprecated
7        do_action('retrieve_password', $user_login);
8
9+        do_action_ref_array('retrieve_password_error', array($user_data->ID, &$pass_error));
10+        if (!empty($pass_error)) {
11+                return new WP_Error('retrieve_password_error', __("<strong>ERROR</strong>: $pass_error."));
12+        }
13+
14        $key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login));
15        if ( empty($key) ) {
16                // Generate something random for a key...
17@@ -489,4 +494,4 @@
18
19 break;
20 } // end action switch
21-?>
22\ No newline at end of file
23+?>