Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/27/2011 10:47:32 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Check $component->root_slug against current_component in bp_is_current_component

File:
1 edited

Legend:

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

    r3933 r3958  
    678678            $is_current_component = true;
    679679
     680        // Since the current component is based on the visible URL slug let's
     681        // check the component being passed and see if its root_slug matches
     682        } elseif ( isset( $bp->{$component}->root_slug ) && $bp->{$component}->root_slug == $bp->current_component ) {
     683            $is_current_component = true;
     684
    680685        // Next, check to see whether $component is a canonical,
    681686        // non-translatable component name. If so, we can return its
Note: See TracChangeset for help on using the changeset viewer.