Make WordPress Core


Ignore:
Timestamp:
07/05/2020 11:19:35 AM (6 years ago)
Author:
ocean90
Message:

Multisite: Delete the signup entry when a user is deleted from the database.

When a user has registered with incorrect data and got the account deleted immediately, it currently wasn't possible to register with the same login or email address again due to the existing signup entry. They had to wait for two days until the entry gets automatically deleted. Now the associated signup entry gets deleted as part of the account deletion.

Fixes #43232.

File:
1 edited

Legend:

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

    r48121 r48315  
    3232add_action( 'network_user_new_created_user', 'wp_send_new_user_notifications' );
    3333add_filter( 'sanitize_user', 'strtolower' );
     34add_action( 'deleted_user', 'wp_delete_signup_on_user_delete', 10, 3 );
    3435
    3536// Roles.
Note: See TracChangeset for help on using the changeset viewer.