Changeset 4840 for trunk/bp-xprofile/bp-xprofile-actions.php
- Timestamp:
- 07/24/2011 10:22:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-actions.php
r4827 r4840 23 23 function xprofile_action_delete_avatar() { 24 24 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 ) ) 27 27 return false; 28 28
Note: See TracChangeset
for help on using the changeset viewer.