Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/02/2013 01:50:21 AM (11 years ago)
Author:
boonebgorges
Message:

Ensure $component has been passed before checking is_current_component()

Passing an empty value was causing a PHP warning to be thrown when using
strstr() later in the function.

Fixes #5158

Props megainfo

File:
1 edited

Legend:

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

    r7298 r7361  
    819819        $component = 'profile';
    820820
    821     if ( !empty( $bp->current_component ) ) {
     821    if ( ! empty( $bp->current_component ) && ! empty( $component ) ) {
    822822
    823823        // First, check to see whether $component_name and the current
Note: See TracChangeset for help on using the changeset viewer.