Skip to:
Content

BuddyPress.org

Changeset 4050


Ignore:
Timestamp:
02/17/2011 03:54:26 PM (14 years ago)
Author:
boonebgorges
Message:

Modifies bp_current_component() to return false when no component is present

File:
1 edited

Legend:

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

    r4042 r4050  
    540540function bp_current_component() {
    541541    global $bp;
    542     return apply_filters( 'bp_current_component', $bp->current_component );
     542    $current_component = !empty( $bp->current_component ) ? $bp->current_component : false;
     543    return apply_filters( 'bp_current_component', $current_component );
    543544}
    544545
Note: See TracChangeset for help on using the changeset viewer.