WordPress.org

Make WordPress Core

Changeset 14242


Ignore:
Timestamp:
04/26/2010 06:20:11 PM (8 years ago)
Author:
ryan
Message:

Hook update_option_new_admin_email to add_option_new_admin_email so that the confirmation email gets set even when new_admin_email doesn't already exist. see #12192

File:
1 edited

Legend:

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

    r14215 r14242  
    274274
    275275function update_option_new_admin_email( $old_value, $value ) {
     276    error_log(var_export($value, true));
     277    $email = get_option( 'admin_email' );
     278    error_log(var_export($email, true));
    276279    if ( $value == get_option( 'admin_email' ) || !is_email( $value ) )
    277280        return;
    278 
     281error_log('here');
    279282    $hash = md5( $value. time() .mt_rand() );
    280283    $new_admin_email = array(
     
    308311}
    309312add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
     313add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
    310314
    311315function send_confirmation_on_profile_email() {
Note: See TracChangeset for help on using the changeset viewer.