Ticket #4242: 4242-2.diff
File 4242-2.diff, 693 bytes (added by , 13 years ago) |
---|
-
bp-core/bp-core-template.php
716 716 717 717 // Loop through active components and look for a match 718 718 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 ) ) ) 720 720 return $bp->{$component}->name; 721 }722 721 } 723 722 724 723 return false;