summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-login.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-login.php b/wp-login.php
index 121369a..bfa0b46 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -57,7 +57,7 @@ function login_header($title = 'Login', $message = '', $wp_error = '') {
} // End of login_header()
function retrieve_password() {
- global $wpdb;
+ global $wpdb, $current_site;
$errors = new WP_Error();
@@ -99,12 +99,12 @@ function retrieve_password() {
$wpdb->query($wpdb->prepare("UPDATE $wpdb->users SET user_activation_key = %s WHERE user_login = %s", $key, $user_login));
//}
$message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
- $message .= get_option('siteurl') . "\r\n\r\n";
+ $message .= 'http://' . trailingslashit( $current_site->domain . $current_site->path ) . "\r\n\r\n";
$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
$message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
- $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";
+ $message .= 'http://' . trailingslashit( $current_site->domain . $current_site->path ) . "wp-login.php?action=rp&key=$key\r\n";
- if ( !wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message) )
+ if ( !wp_mail($user_email, sprintf(__('[%s] Password Reset'), $current_site->site_name), $message) )
die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
return true;