Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 02:14:07 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in XProfile component. See #3989.

File:
1 edited

Legend:

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

    r5329 r5699  
    11<?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
    612 */
    713
     
    1622 *
    1723 * @package BuddyPress Xprofile
    18  * @global object $bp Global BuddyPress settings object
    1924 * @uses bp_core_delete_avatar() Deletes the active avatar for the logged in user.
    2025 * @uses add_action() Runs a specific function for an action when it fires.
     
    2227 */
    2328function xprofile_action_delete_avatar() {
    24     global $bp;
    2529
    2630    if ( !bp_is_user_change_avatar() || !bp_is_action_variable( 'delete-avatar', 0 ) )
Note: See TracChangeset for help on using the changeset viewer.