WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/25/2015 10:37:35 PM (6 years ago)
Author:
ocean90
Message:

Users: Allow to create users without sending an email to the new user.

This adds a checkbox to wp-admin/user-new.php to prevent sending an email with the username and a password reset link to the new user. Restores the behavior of pre-4.3.

Fixes #33504.
Props tharsheblows, SergeyBiryukov, DrewAPicture, ocean90.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r35709 r35742  
    358358add_action( 'after_password_reset', 'wp_password_change_notification' );
    359359add_action( 'register_new_user',      'wp_send_new_user_notifications' );
    360 add_action( 'edit_user_created_user', 'wp_send_new_user_notifications' );
     360add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );
    361361
    362362// REST API actions.
Note: See TracChangeset for help on using the changeset viewer.