Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2011 01:52:18 AM (14 years ago)
Author:
johnjamesjacoby
Message:

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

File:
1 edited

Legend:

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

    r4638 r4646  
    678678
    679679function bp_group_is_activity_permalink() {
    680     global $bp;
    681 
    682     if ( !bp_is_single_item() || !bp_is_current_component( 'groups' ) || !bp_is_current_action( $bp->activity->slug ) )
     680
     681    if ( !bp_is_single_item() || !bp_is_current_component( 'groups' ) || !bp_is_current_action( bp_get_activity_slug() ) )
    683682        return false;
    684683
     
    715714}
    716715
    717 function bp_group_total_members() {
    718     echo bp_get_group_total_members();
     716function bp_group_total_members( $group = false ) {
     717    echo bp_get_group_total_members( $group );
    719718}
    720719    function bp_get_group_total_members( $group = false ) {
Note: See TracChangeset for help on using the changeset viewer.