Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2011 09:10:47 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add missing _is_ functions for Settings component and introduce fallback template file in /bp-default/members/single/.

Fix issue where BuddyBar Settings links were incorrectly using displayed_user, even when no user was displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-settings/bp-settings-loader.php

    r4961 r5134  
    7878        );
    7979
    80         $settings_link = trailingslashit( $bp->displayed_user->domain . $this->slug );
     80        // Determine user to use
     81        if ( isset( $bp->displayed_user->domain ) )
     82            $user_domain = $bp->displayed_user->domain;
     83        elseif ( isset( $bp->loggedin_user->domain ) )
     84            $user_domain = $bp->loggedin_user->domain;
     85        else
     86            return;
     87
     88        $settings_link = trailingslashit( $user_domain . $this->slug );
    8189
    8290        // Add General Settings nav item
Note: See TracChangeset for help on using the changeset viewer.