Skip to:
Content

BuddyPress.org

Changeset 5105


Ignore:
Timestamp:
09/06/2011 01:09:29 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Prevent root slugs of deactivated components from returning false positive match. Fixes #3553.

File:
1 edited

Legend:

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

    r5061 r5105  
    146146        // Loop through each page in the $bp->pages global
    147147        foreach ( (array) $bp->pages as $page_key => $bp_page ) {
     148
     149            // Skip page if component is inactive
     150            if ( !bp_is_active( $page_key ) )
     151                continue;
    148152
    149153            // Look for a match (check members first)
Note: See TracChangeset for help on using the changeset viewer.