Ticket #4081: remove-faulty-conditional.patch
File remove-faulty-conditional.patch, 850 bytes (added by , 13 years ago) |
---|
-
bp-core/bp-core-template.php
777 777 } elseif ( isset( $bp->{$component}->slug ) && $bp->{$component}->slug == $bp->current_component ) { 778 778 $is_current_component = true; 779 779 780 // Next, check to see whether $component is a canonical,781 // non-translatable component name. If so, we can return its782 // corresponding slug from $bp->active_components.783 } else if ( $key = array_search( $component, $bp->active_components ) ) {784 if ( strstr( $bp->current_component, $key ) ) {785 $is_current_component = true;786 }787 788 780 // If we haven't found a match yet, check against the root_slugs 789 781 // created by $bp->pages, as well as the regular slugs 790 782 } else {