WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/14/17 20:12:23 (5 months ago)
Author:
johnbillion
Message:

Options, Meta APIs: Require a confirmation link in an email to be clicked when an admin attempts to change the site admin 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 site.

Props MatheusGimenez, johnbillion

Fixes #39118

File:
1 edited

Legend:

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

    r41253 r41254  
    1616 
    1717add_action( 'admin_page_access_denied', '_access_denied_splash', 99 ); 
    18  
    19 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 
    20  
    21 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 ); 
    2218 
    2319// Site Hooks. 
Note: See TracChangeset for help on using the changeset viewer.