Make WordPress Core

Ticket #32684: 32684.patch

File 32684.patch, 537 bytes (added by imath, 10 years ago)
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index f2529dc..c6410cb 100644
    function wp_update_user($userdata) { 
    21582158                $send_pass_change_email = apply_filters( 'send_pass_change_email', true, $user, $userdata );
    21592159        }
    21602160
    2161         if ( $user['user_email'] !== $userdata['user_email'] ) {
     2161        if ( isset( $userdata['user_email'] ) && $user['user_email'] !== $userdata['user_email'] ) {
    21622162                /**
    21632163                 * Filter to stop the sending of the email change email.
    21642164                 *