Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 07:46:50 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Use bp_get_root_domain() in place of $bp->root_domain global

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-screens.php

    r3917 r3982  
    114114
    115115    if ( !$activity = $activity['activities'][0] )
    116         bp_core_redirect( $bp->root_domain );
     116        bp_core_redirect( bp_get_root_domain() );
    117117
    118118    // Default access is true
     
    124124        // Activity is from a group, but groups is currently disabled
    125125        if ( !bp_is_active( 'groups') )
    126             bp_core_redirect( $bp->root_domain );
     126            bp_core_redirect( bp_get_root_domain() );
    127127
    128128        // Check to see if the group is not public, if so, check the
     
    156156        is_user_logged_in() ?
    157157            bp_core_redirect( $bp->loggedin_user->domain ) :
    158             bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( $bp->root_domain . '/' . $bp->activity->slug . '/p/' . $bp->current_action ) ) );
     158            bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/p/' . $bp->current_action ) ) );
    159159    }
    160160
Note: See TracChangeset for help on using the changeset viewer.