Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 07:46:50 PM (15 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-template.php

    r3955 r3982  
    445445
    446446                if ( !empty( $update['id'] ) )
    447                         $update_content .= ' &middot; <a href="' . $bp->root_domain . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>';
     447                        $update_content .= ' &middot; <a href="' . bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>';
    448448
    449449                return apply_filters( 'bp_get_member_latest_update', $update_content );
     
    580580        // Always add a log out list item to the end of the navigation
    581581        if ( function_exists( 'wp_logout_url' ) )
    582                 $logout_link = '<li><a id="wp-logout" href="' .  wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     582                $logout_link = '<li><a id="wp-logout" href="' .  wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    583583        else
    584                 $logout_link = '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     584                $logout_link = '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    585585
    586586        echo apply_filters( 'bp_logout_nav_link', $logout_link );
     
    802802
    803803                if ( bp_has_custom_signup_page() )
    804                         $page = $bp->root_domain . '/' . BP_REGISTER_SLUG;
    805                 else
    806                         $page = $bp->root_domain . '/wp-signup.php';
     804                        $page = bp_get_root_domain() . '/' . BP_REGISTER_SLUG;
     805                else
     806                        $page = bp_get_root_domain() . '/wp-signup.php';
    807807
    808808                return apply_filters( 'bp_get_signup_page', $page );
     
    823823
    824824                if ( bp_has_custom_activation_page() )
    825                         $page = trailingslashit( $bp->root_domain ) . BP_ACTIVATION_SLUG;
    826                 else
    827                         $page = trailingslashit( $bp->root_domain ) . 'wp-activate.php';
     825                        $page = trailingslashit( bp_get_root_domain() ) . BP_ACTIVATION_SLUG;
     826                else
     827                        $page = trailingslashit( bp_get_root_domain() ) . 'wp-activate.php';
    828828
    829829                return apply_filters( 'bp_get_activation_page', $page );
Note: See TracChangeset for help on using the changeset viewer.