Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 07:46:50 PM (13 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-members/bp-members-signup.php

    r3960 r3982  
    1111
    1212    if ( bp_is_component_front_page( 'register' ) && ( is_user_logged_in() || !bp_get_signup_allowed() ) )
    13         bp_core_redirect( $bp->root_domain . '/' . $bp->members->slug );
     13        bp_core_redirect( bp_get_root_domain() . '/' . $bp->members->slug );
    1414
    1515    // If the user is logged in, redirect away from here
    1616    if ( is_user_logged_in() )
    17         bp_core_redirect( $bp->root_domain );
     17        bp_core_redirect( bp_get_root_domain() );
    1818
    1919    // If signups are disabled, just re-direct
    2020    if ( !bp_get_signup_allowed() )
    21         bp_core_redirect( $bp->root_domain );
     21        bp_core_redirect( bp_get_root_domain() );
    2222
    2323    $bp->signup->step = 'request-details';
     
    7373            // This situation doesn't naturally occur so bounce to website root
    7474            } else {
    75                 bp_core_redirect( $bp->root_domain );
     75                bp_core_redirect( bp_get_root_domain() );
    7676            }
    7777        }
     
    167167        if ( !empty( $user->errors ) ) {
    168168            bp_core_add_message( $user->get_error_message(), 'error' );
    169             bp_core_redirect( $bp->root_domain . '/' . BP_ACTIVATION_SLUG );
     169            bp_core_redirect( bp_get_root_domain() . '/' . BP_ACTIVATION_SLUG );
    170170        }
    171171
Note: See TracChangeset for help on using the changeset viewer.