Skip to:
Content

BuddyPress.org

Changeset 9040


Ignore:
Timestamp:
09/25/2014 04:29:45 PM (10 years ago)
Author:
r-a-y
Message:

Settings: Fix email change verification.

Fixes #5903 (2.1-branch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/src/bp-settings/bp-settings-actions.php

    r8560 r9040  
    427427    // Email change is being verified
    428428    if ( isset( $_GET['verify_email_change'] ) ) {
    429         $pending_email = bp_get_user_meta( bp_displayed_user_id(), 'pending_email_change' );
     429        $pending_email = bp_get_user_meta( bp_displayed_user_id(), 'pending_email_change', true );
    430430
    431431        // Bail if the hash provided doesn't match the one saved in the database
     
    440440
    441441        if ( $email_changed ) {
     442            // Delete object cache for displayed user
     443            wp_cache_delete( 'bp_core_userdata_' . bp_displayed_user_id(), 'bp' );
     444
    442445            // Delete the pending email change key
    443446            bp_delete_user_meta( bp_displayed_user_id(), 'pending_email_change' );
Note: See TracChangeset for help on using the changeset viewer.