Skip to:
Content

Ticket #4081: remove-faulty-conditional.patch

File remove-faulty-conditional.patch, 850 bytes (added by chrisbliss18, 7 years ago)

Remove the faulty conditional logic

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

     
    777777                } elseif ( isset( $bp->{$component}->slug ) && $bp->{$component}->slug == $bp->current_component ) {
    778778                        $is_current_component = true;
    779779
    780                 // Next, check to see whether $component is a canonical,
    781                 // non-translatable component name. If so, we can return its
    782                 // 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 
    788780                // If we haven't found a match yet, check against the root_slugs
    789781                // created by $bp->pages, as well as the regular slugs
    790782                } else {