Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 02:45:59 AM (13 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-members/bp-members-template.php

    r5700 r5704  
    755755        }
    756756
    757         if ( $bp->loggedin_user->domain ) {
    758             $link = str_replace( $bp->loggedin_user->domain, $bp->displayed_user->domain, $user_nav_item['link'] );
     757        if ( bp_loggedin_user_domain() ) {
     758            $link = str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item['link'] );
    759759        } else {
    760             $link = trailingslashit( $bp->displayed_user->domain . $user_nav_item['link'] );
     760            $link = trailingslashit( bp_displayed_user_domain() . $user_nav_item['link'] );
    761761        }
    762762
     
    11811181        // Append $action to $url if there is no $type
    11821182        if ( !empty( $action ) )
    1183             $url = $bp->displayed_user->domain . $bp->{$component}->slug . '/' . $action;
     1183            $url = bp_displayed_user_domain() . $bp->{$component}->slug . '/' . $action;
    11841184        else
    1185             $url = $bp->displayed_user->domain . $bp->{$component}->slug;
     1185            $url = bp_displayed_user_domain() . $bp->{$component}->slug;
    11861186
    11871187        // Add a slash at the end of our user url
Note: See TracChangeset for help on using the changeset viewer.