Make WordPress Core

Changeset 4902 for trunk/wp-login.php


Ignore:
Timestamp:
02/21/2007 02:08:28 AM (17 years ago)
Author:
markjaquith
Message:

refrain from notifying the administrator of administrator password changes (it is redundant). Props rob1n for the patch refresh. fixes #1096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r4656 r4902  
    195195    } else {
    196196        // send a copy of password change notification to the admin
    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        }
    199202
    200203        wp_redirect('wp-login.php?checkemail=newpass');
Note: See TracChangeset for help on using the changeset viewer.