Skip to:
Content

bbPress.org

Changeset 3554


Ignore:
Timestamp:
10/30/2011 04:18:14 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add is_user_logged_in() check to bbp_is_user_home(). Fixes #1655, props valendesigns. (plugin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-common-template.php

    r3553 r3554  
    475475 *               bbPress::displayed_user::ID equals bbPress::current_user::ID
    476476 *               or not
     477 * @uses is_user_logged_in() Must be logged in to be home
    477478 * @return bool True if it's the user's home, false if not
    478479 */
     
    483484    $retval = false;
    484485
    485     if ( !empty( $bbp->displayed_user ) )
     486    if ( !empty( $bbp->displayed_user ) && is_user_logged_in() )
    486487        $retval = (bool) ( bbp_get_displayed_user_id() == bbp_get_current_user_id() );
    487488
Note: See TracChangeset for help on using the changeset viewer.