Skip to:
Content

BuddyPress.org

Changeset 4501


Ignore:
Timestamp:
06/12/2011 06:32:54 PM (14 years ago)
Author:
djpaul
Message:

Stop forum directory template loading for invalid member forum URLs. Fixes #3176, props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-screens.php

    r4303 r4501  
    22
    33function bp_forums_directory_forums_setup() {
    4     global $bp;
     4    global $bp, $bp_unfiltered_uri;
    55
    6     if ( bp_is_forums_component() && ( !bp_current_action() || 'tag' == bp_current_action() ) && !bp_current_item() ) {
     6    if ( bp_is_forums_component() && !isset( $bp_unfiltered_uri[1] ) && ( !bp_current_action() || 'tag' == bp_current_action() ) && !bp_current_item() ) {
    77        if ( bp_forum_directory_is_disabled() )
    88            return false;
Note: See TracChangeset for help on using the changeset viewer.