Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 12:12:52 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Replace all references to bp_get_root_domain() . '/' . bp_get_members_root_slug() with bp_get_members_directory_permalink(), ensuring all usages and filters are applied uniformly. See #4954.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-screens.php

    r9401 r9467  
    7575    // If the user is logged in, redirect away from here
    7676    if ( is_user_logged_in() ) {
    77         if ( bp_is_component_front_page( 'register' ) )
    78             $redirect_to = trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() );
    79         else
    80             $redirect_to = bp_get_root_domain();
     77
     78        $redirect_to = bp_is_component_front_page( 'register' )
     79            ? bp_get_members_directory_permalink()
     80            : bp_get_root_domain();
    8181
    8282        /**
     
    306306        // avoid an infinite loop. Otherwise, set to root domain.
    307307        $redirect_to = bp_is_component_front_page( 'activate' )
    308             ? bp_get_root_domain() . '/' . bp_get_members_root_slug()
     308            ? bp_get_members_directory_permalink()
    309309            : bp_get_root_domain();
    310310
Note: See TracChangeset for help on using the changeset viewer.