Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/25/2011 12:29:19 AM (15 years ago)
Author:
boonebgorges
Message:

Global/slug audit in Core and Activity components. Fixes #3325

File:
1 edited

Legend:

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

    r4844 r4847  
    11551155
    11561156function bp_is_group_forum_topic() {
    1157     global $bp;
    1158 
    1159     if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) && isset( $bp->action_variables[0] ) && 'topic' == $bp->action_variables[0] )
     1157    if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) && bp_is_action_variable( 'topic', 0 ) )
    11601158        return true;
    11611159
     
    11661164    global $bp;
    11671165
    1168     if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) && isset( $bp->action_variables[0] ) && 'topic' == $bp->action_variables[0] && isset( $bp->action_variables[2] ) && 'edit' == $bp->action_variables[2] )
     1166    if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) && bp_is_action_variable( 'topic', 0 ) && bp_is_action_variable( 'edit', 2 ) )
    11691167        return true;
    11701168
Note: See TracChangeset for help on using the changeset viewer.