Skip to:
Content

BuddyPress.org


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

Audit _is_ functions and _current_component_ functions. Props r-a-y. Fixes #3399.

File:
1 edited

Legend:

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

    r4961 r5072  
    2424    global $bp;
    2525
    26     if ( !bp_is_current_component( 'profile' ) || !bp_is_current_action( 'change-avatar' ) || !bp_is_action_variable( 'delete-avatar', 0 ) )
     26    if ( !bp_is_user_change_avatar() || !bp_is_action_variable( 'delete-avatar', 0 ) )
    2727        return false;
    2828
Note: See TracChangeset for help on using the changeset viewer.