Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2011 01:14:31 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use bp_displayed_user_id() rather than reference the $bp->displayed_user->id global var directly. First step at consolidating user ID checks to use WP_User class later. See #3738.

File:
1 edited

Legend:

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

    r5072 r5301  
    3333        return false;
    3434
    35     if ( bp_core_delete_existing_avatar( array( 'item_id' => $bp->displayed_user->id ) ) )
     35    if ( bp_core_delete_existing_avatar( array( 'item_id' => bp_displayed_user_id() ) ) )
    3636        bp_core_add_message( __( 'Your avatar was deleted successfully!', 'buddypress' ) );
    3737    else
Note: See TracChangeset for help on using the changeset viewer.