Skip to:
Content

BuddyPress.org

Changeset 5058


Ignore:
Timestamp:
08/30/2011 02:49:50 AM (13 years ago)
Author:
boonebgorges
Message:

Tweaks bp_is_blog_page() to ensure that it doesn't return true on member home pages, where the current_component may not be set. Fixes #3294

File:
1 edited

Legend:

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

    r5047 r5058  
    971971    $is_blog_page = false;
    972972
    973     if ( !bp_current_component() )
     973    // Generally, we can just check to see that there's no current component. The one exception
     974    // is single user home tabs, where $bp->current_component is unset. Thus the addition
     975    // of the bp_is_user() check.
     976    if ( !bp_current_component() && !bp_is_user() )
    974977        $is_blog_page = true;
    975978
Note: See TracChangeset for help on using the changeset viewer.