Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2011 02:11:01 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->friends->slug. See #3325.

File:
1 edited

Legend:

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

    r3917 r4647  
    1010    global $bp;
    1111
    12     if ( $bp->current_component != $bp->friends->slug || $bp->current_action != 'add-friend' )
     12    if ( !bp_is_friends_component() || !bp_is_current_action( 'add-friend' ) )
    1313        return false;
    1414
     
    4949    global $bp;
    5050
    51     if ( $bp->current_component != $bp->friends->slug || $bp->current_action != 'remove-friend' )
     51    if ( !bp_is_friends_component() || !bp_is_current_action( 'remove-friend' ) )
    5252        return false;
    5353
Note: See TracChangeset for help on using the changeset viewer.