Skip to:
Content

BuddyPress.org

Changeset 2389 for trunk/bp-groups.php


Ignore:
Timestamp:
01/21/2010 11:19:32 AM (16 years ago)
Author:
apeatling
Message:

Fixed issues with the listing of hidden groups when you are logged in. Switched all references of bp_is_home() to the more appropriate bp_is_my_profile().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2381 r2389  
    155155        if ( $bp->current_component == $bp->groups->slug ) {
    156156
    157                 if ( bp_is_home() && !$bp->is_single_item ) {
     157                if ( bp_is_my_profile() && !$bp->is_single_item ) {
    158158
    159159                        $bp->bp_options_title = __( 'My Groups', 'buddypress' );
    160160
    161                 } else if ( !bp_is_home() && !$bp->is_single_item ) {
     161                } else if ( !bp_is_my_profile() && !$bp->is_single_item ) {
    162162
    163163                        $bp->bp_options_avatar = bp_core_fetch_avatar( array( 'item_id' => $bp->displayed_user->id, 'type' => 'thumb' ) );
     
    19031903        ) );
    19041904
     1905        do_action( 'bp_groups_posted_update', $content, $user_id, $group_id, $activity_id );
     1906
    19051907        return $activity_id;
    19061908}
Note: See TracChangeset for help on using the changeset viewer.