Changeset 11450 for trunk/wp-login.php
- Timestamp:
- 05/24/2009 11:47:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r11291 r11450 148 148 $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n"; 149 149 $message .= site_url("wp-login.php?action=rp&key=$key", 'login') . "\r\n"; 150 150 151 151 $title = sprintf(__('[%s] Password Reset'), get_option('blogname')); 152 152 153 153 $title = apply_filters('retrieve_password_title', $title); 154 154 $message = apply_filters('retrieve_password_message', $message, $key); 155 155 156 156 if ( $message && !wp_mail($user_email, $title, $message) ) 157 157 die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>'); … … 182 182 // Generate something random for a password... 183 183 $new_pass = wp_generate_password(); 184 184 185 185 do_action('password_reset', $user, $new_pass); 186 186 … … 195 195 $title = apply_filters('password_reset_title', $title); 196 196 $message = apply_filters('password_reset_message', $message, $new_pass); 197 197 198 198 if ( $message && !wp_mail($user->user_email, $title, $message) ) 199 199 die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
Note: See TracChangeset
for help on using the changeset viewer.