Make WordPress Core

Ticket #32563: 32563.patch

File 32563.patch, 508 bytes (added by jfarthing84, 9 years ago)
  • wp-includes/user.php

     
    24342434
    24352435        update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.
    24362436
    2437         wp_new_user_notification( $user_id, $user_pass );
     2437        if ( apply_filters( 'send_new_user_notification', true, $user_id ) )
     2438                wp_new_user_notification( $user_id, $user_pass );
    24382439
    24392440        return $user_id;
    24402441}