Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 02:45:59 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Replace direct references to $bp user domains with their functional equivalents. See #3994.

File:
1 edited

Legend:

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

    r5690 r5704  
    8989
    9090        // Determine user to use
    91         if ( isset( $bp->displayed_user->domain ) )
    92             $user_domain = $bp->displayed_user->domain;
    93         elseif ( isset( $bp->loggedin_user->domain ) )
    94             $user_domain = $bp->loggedin_user->domain;
     91        if ( bp_displayed_user_domain() )
     92            $user_domain = bp_displayed_user_domain();
     93        elseif ( bp_loggedin_user_domain() )
     94            $user_domain = bp_loggedin_user_domain();
    9595        else
    9696            return;
     
    151151
    152152            // Setup the logged in user variables
    153             $user_domain   = $bp->loggedin_user->domain;
     153            $user_domain   = bp_loggedin_user_domain();
    154154            $settings_link = trailingslashit( $user_domain . $this->slug );
    155155
Note: See TracChangeset for help on using the changeset viewer.