Skip to:
Content

BuddyPress.org

Changeset 2389 for trunk/bp-xprofile.php


Ignore:
Timestamp:
01/21/2010 11:19:32 AM (15 years ago)
Author:
apeatling
Message:

Fixed issues with the listing of hidden groups when you are logged in. Switched all references of bp_is_home() to the more appropriate bp_is_my_profile().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r2381 r2389  
    169169 * @uses bp_core_add_nav_default() Sets which sub navigation item is selected by default
    170170 * @uses bp_core_add_subnav_item() Adds a sub navigation item to a nav item
    171  * @uses bp_is_home() Returns true if the current user being viewed is equal the logged in user
     171 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user
    172172 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed
    173173 */
     
    186186
    187187    if ( $bp->current_component == $bp->profile->slug ) {
    188         if ( bp_is_home() ) {
     188        if ( bp_is_my_profile() ) {
    189189            $bp->bp_options_title = __( 'My Profile', 'buddypress' );
    190190        } else {
     
    215215
    216216    /* Don't show this menu to non site admins or if you're viewing your own profile */
    217     if ( !is_site_admin() || bp_is_home() )
     217    if ( !is_site_admin() || bp_is_my_profile() )
    218218        return false;
    219219    ?>
     
    270270 *
    271271 * @package BuddyPress Xprofile
    272  * @uses bp_is_home() Checks to make sure the current user being viewed equals the logged in user
     272 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user
    273273 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename)
    274274 */
     
    357357 *
    358358 * @package BuddyPress Xprofile
    359  * @uses bp_is_home() Checks to make sure the current user being viewed equals the logged in user
     359 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user
    360360 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename)
    361361 */
     
    363363    global $bp;
    364364
    365     if ( !bp_is_home() && !is_site_admin() )
     365    if ( !bp_is_my_profile() && !is_site_admin() )
    366366        return false;
    367367
     
    432432    check_admin_referer( 'bp_delete_avatar_link' );
    433433
    434     if ( !bp_is_home() && !is_site_admin() )
     434    if ( !bp_is_my_profile() && !is_site_admin() )
    435435        return false;
    436436
Note: See TracChangeset for help on using the changeset viewer.