Make WordPress Core

Ticket #32563: 32563.2.patch

File 32563.2.patch, 604 bytes (added by jfarthing84, 9 years ago)

Move the filter to wp_new_user_notification.

  • wp-includes/pluggable.php

     
    16851685 * @param string $plaintext_pass Optional. The user's plaintext password. Default empty.
    16861686 */
    16871687function wp_new_user_notification($user_id, $plaintext_pass = '') {
     1688
     1689        if ( ! apply_filters( 'send_new_user_notification', true, $user_id ) )
     1690                return;
     1691
    16881692        $user = get_userdata( $user_id );
    16891693
    16901694        // The blogname option is escaped with esc_html on the way into the database in sanitize_option