Make WordPress Core

Ticket #47352: 47352.jhoffmann.diff

File 47352.jhoffmann.diff, 684 bytes (added by j.hoffmann, 4 years ago)

Just informative solution of deleting the rate limit option upon changing the admin email option.

  • wp-admin/options.php

     
    5858        $redirect          = 'options-general.php?updated=false';
    5959        if ( is_array( $new_admin_details ) && hash_equals( $new_admin_details['hash'], $_GET['adminhash'] ) && ! empty( $new_admin_details['newemail'] ) ) {
    6060                update_option( 'admin_email', $new_admin_details['newemail'] );
     61                delete_option( WP_Recovery_Mode_Email_Service::RATE_LIMIT_OPTION );
    6162                delete_option( 'adminhash' );
    6263                delete_option( 'new_admin_email' );
    6364                $redirect = 'options-general.php?updated=true';