Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 05:46:52 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Clean up $bp->current_component, $bp->current_action, and $bp->current_item usage. Fixes #3738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-template.php

    r5729 r5758  
    246246
    247247    // Type
    248     if ( 'my-groups' == $bp->current_action ) {
     248    if ( bp_is_current_action( 'my-groups' ) ) {
    249249        if ( 'most-popular' == $order ) {
    250250            $type = 'popular';
     
    252252            $type = 'alphabetical';
    253253        }
    254     } elseif ( 'invites' == $bp->current_action ) {
     254    } elseif ( bp_is_current_action( 'invites' ) ) {
    255255        $type = 'invites';
    256256    } elseif ( isset( $bp->groups->current_group->slug ) && $bp->groups->current_group->slug ) {
Note: See TracChangeset for help on using the changeset viewer.