197 | | $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; |
198 | | wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); |
| 197 | // but check to see if it's the admin whose password we're changing, and skip this |
| 198 | if ($user->user_email != get_settings('admin_email')) { |
| 199 | $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; |
| 200 | wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); |
| 201 | } |