WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/27/2017 02:09:51 AM (12 months ago)
Author:
johnbillion
Message:

Users: Require a confirmation link in an email to be clicked when a user attempts to change their email address.

This adds this previously Multisite-only functionality to single site installations too. This change prevents accidental or erroneous email address changes from potentially locking users out of their account.

Props rodrigosprimo, tharsheblows, johnbillion

Fixes #16470

File:
1 edited

Legend:

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

    r36504 r41163  
    1212
    1313// User Hooks
    14 add_action( 'admin_notices', 'new_user_email_admin_notice' );
    1514add_action( 'user_admin_notices', 'new_user_email_admin_notice' );
    1615
     
    1817
    1918add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
    20 
    21 add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );
    2219
    2320add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.