Skip to:
Content

BuddyPress.org

Changeset 1994


Ignore:
Timestamp:
09/29/2009 06:48:37 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1109

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r1988 r1994  
    4848    /* Always add a log out list item to the end of the navigation */
    4949    if ( function_exists( 'wp_logout_url' ) ) {
    50         echo '<li><a id="wp-logout" href="' .  wp_logout_url( site_url() . $_SERVER['REQUEST_URI'] ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';     
     50        echo '<li><a id="wp-logout" href="' .  wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';     
    5151    } else {
    52         echo '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . site_url() . $_SERVER['REQUEST_URI'] . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     52        echo '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    5353    }
    5454}
Note: See TracChangeset for help on using the changeset viewer.