Ticket #33654: 33654.diff
File 33654.diff, 3.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/user.php
176 176 $user_id = wp_update_user( $user ); 177 177 } else { 178 178 $user_id = wp_insert_user( $user ); 179 wp_new_user_notification( $user_id, 'both' );179 wp_new_user_notification( $user_id, null, 'both' ); 180 180 } 181 181 return $user_id; 182 182 } -
src/wp-admin/network/site-new.php
79 79 if ( false === $user_id ) 80 80 wp_die( __( 'There was an error creating the user.' ) ); 81 81 else 82 wp_new_user_notification( $user_id, 'both' );82 wp_new_user_notification( $user_id, null, 'both' ); 83 83 } 84 84 85 85 $wpdb->hide_errors(); -
src/wp-admin/network/site-users.php
77 77 if ( false === $user_id ) { 78 78 $update = 'err_new_dup'; 79 79 } else { 80 wp_new_user_notification( $user_id, 'both' );80 wp_new_user_notification( $user_id, null, 'both' ); 81 81 add_user_to_blog( $id, $user_id, $_POST['new_role'] ); 82 82 $update = 'newuser'; 83 83 } -
src/wp-admin/network/user-new.php
51 51 if ( ! $user_id ) { 52 52 $add_user_errors = new WP_Error( 'add_user_fail', __( 'Cannot add user.' ) ); 53 53 } else { 54 wp_new_user_notification( $user_id, 'both' );54 wp_new_user_notification( $user_id, null, 'both' ); 55 55 wp_redirect( add_query_arg( array('update' => 'added'), 'user-new.php' ) ); 56 56 exit; 57 57 } -
src/wp-includes/pluggable.php
1690 1690 * 1691 1691 * @since 2.0.0 1692 1692 * @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`. 1693 * @since 4.3.1 The `$plaintext_pass` deprecated. `$notify` added as a third argument. 1693 1694 * 1694 1695 * @param int $user_id User ID. 1696 * @param bool $deprecated Not used (argument deprecated). 1695 1697 * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty 1696 1698 * string (admin only), or 'both' (admin and user). The empty string value was kept 1697 1699 * for backward-compatibility purposes with the renamed parameter. Default empty. 1698 1700 */ 1699 function wp_new_user_notification( $user_id, $notify = '' ) { 1701 function wp_new_user_notification( $user_id, , $deprecated = null, $notify = '' ) { 1702 if ( $deprecated !== null ) { 1703 _deprecated_argument( __FUNCTION__, '4.3.1' ); 1704 } 1705 1700 1706 global $wpdb; 1701 1707 $user = get_userdata( $user_id ); 1702 1708 -
src/wp-includes/user-functions.php
2003 2003 2004 2004 update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag. 2005 2005 2006 wp_new_user_notification( $user_id, 'both' );2006 wp_new_user_notification( $user_id, null, 'both' ); 2007 2007 2008 2008 return $user_id; 2009 2009 }