Skip to:
Content

BuddyPress.org

Changeset 5588


Ignore:
Timestamp:
12/23/2011 08:00:35 PM (13 years ago)
Author:
boonebgorges
Message:

Structures user data correctly for WP 3.3+ WP_User when sending to wp_update_user(). Fixes #3885

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-settings/bp-settings-actions.php

    r5387 r5588  
    7979            } else {
    8080                unset( $update_user->user_pass );
     81            }
     82
     83            // The structure of the $update_user object changed in WP 3.3, but
     84            // wp_update_user() still expects the old format
     85            if ( isset( $update_user->data ) && is_object( $update_user->data ) ) {
     86                $update_user = $update_user->data;
    8187            }
    8288
Note: See TracChangeset for help on using the changeset viewer.