Changeset 5699 for trunk/bp-xprofile/bp-xprofile-actions.php
- Timestamp:
- 02/11/2012 02:14:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-actions.php
r5329 r5699 1 1 <?php 2 /******************************************************************************* 3 * Action functions are exactly the same as screen functions, however they do 4 * not have a template screen associated with them. Usually they will send the 5 * user back to the default screen after execution. 2 3 /** 4 * BuddyPress XProfile Actions 5 * 6 * Action functions are exactly the same as screen functions, however they do not 7 * have a template screen associated with them. Usually they will send the user 8 * back to the default screen after execution. 9 * 10 * @package BuddyPress 11 * @subpackage XProfileActions 6 12 */ 7 13 … … 16 22 * 17 23 * @package BuddyPress Xprofile 18 * @global object $bp Global BuddyPress settings object19 24 * @uses bp_core_delete_avatar() Deletes the active avatar for the logged in user. 20 25 * @uses add_action() Runs a specific function for an action when it fires. … … 22 27 */ 23 28 function xprofile_action_delete_avatar() { 24 global $bp;25 29 26 30 if ( !bp_is_user_change_avatar() || !bp_is_action_variable( 'delete-avatar', 0 ) )
Note: See TracChangeset
for help on using the changeset viewer.