summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-login.php')
-rw-r--r--wp-login.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-login.php b/wp-login.php
index b169ee5..8ee6e8a 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -98,7 +98,7 @@ case 'retrievepassword':
$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 e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
+ wp_die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
do_action('retreive_password', $user_login); // Misspelled and deprecated.
do_action('retrieve_password', $user_login);
@@ -132,10 +132,10 @@ case 'rp' :
// Generate something random for a password... md5'ing current time with a rand salt
$key = preg_replace('/a-z0-9/i', '', $_GET['key']);
if ( empty($key) )
- die( __('Sorry, that key does not appear to be valid.') );
+ wp_die( __('Sorry, that key does not appear to be valid.') );
$user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE user_activation_key = '$key'");
if ( !$user )
- die( __('Sorry, that key does not appear to be valid.') );
+ wp_die( __('Sorry, that key does not appear to be valid.') );
do_action('password_reset');