Skip to:
Content

BuddyPress.org

Ticket #4242: 4242-2.diff

File 4242-2.diff, 693 bytes (added by jkudish, 13 years ago)

refresh patch, checking both slug and root_slug

  • bp-core/bp-core-template.php

     
    716716
    717717        // Loop through active components and look for a match
    718718        foreach ( $bp->active_components as $component => $id ) {
    719                 if ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->root_slug == $root_slug ) ) {
     719                if ( ( !empty( $bp->{$component}->slug ) && ( $bp->{$component}->slug == $root_slug ) ) || ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->root_slug == $root_slug ) ) )
    720720                        return $bp->{$component}->name;
    721                 }
    722721        }
    723722
    724723        return false;