Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/24/2011 10:22:55 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces wrapper functions for retrieving and checking items in bp->action_variables. action_variables audit for xprofile component. See #3325

File:
1 edited

Legend:

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

    r4827 r4840  
    2323function xprofile_action_delete_avatar() {
    2424    global $bp;
    25 
    26     if ( $bp->profile->id != $bp->current_component || 'change-avatar' != $bp->current_action || !isset( $bp->action_variables[0] ) || 'delete-avatar' != $bp->action_variables[0] )
     25   
     26    if ( !bp_is_current_component( 'profile' ) || !bp_is_current_action( 'change-avatar' ) || !bp_is_action_variable( 'delete-avatar', 0 ) )
    2727        return false;
    2828
Note: See TracChangeset for help on using the changeset viewer.