Make WordPress Core


Ignore:
Timestamp:
08/17/2015 02:24:43 PM (11 years ago)
Author:
obenland
Message:

Passwords: Restore second parameter for wp_new_user_notification().

After [33023] users would always be notified, this restores previous behavior.

Props markjaquith, ocean90.
Fixes #33358.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r33601 r33620  
    177177        } else {
    178178                $user_id = wp_insert_user( $user );
    179                 wp_new_user_notification( $user_id );
     179                wp_new_user_notification( $user_id, 'both' );
    180180        }
    181181        return $user_id;
Note: See TracChangeset for help on using the changeset viewer.