Skip to:
Content

BuddyPress.org

Changeset 6616


Ignore:
Timestamp:
12/10/2012 04:11:07 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Fix bug causing page name/title to be incorrect when directory page has parntes. Props jkudish. Fixes #4242.

File:
1 edited

Legend:

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

    r6612 r6616  
    728728    // Loop through active components and look for a match
    729729    foreach ( array_keys( $bp->active_components ) as $component ) {
    730         if ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->root_slug == $root_slug ) ) {
     730        if ( ( !empty( $bp->{$component}->slug ) && ( $bp->{$component}->slug == $root_slug ) ) || ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->root_slug == $root_slug ) ) ) {
    731731            return $bp->{$component}->name;
    732732        }
Note: See TracChangeset for help on using the changeset viewer.