Skip to:
Content

BuddyPress.org

Ticket #2109: 2109.diff

File 2109.diff, 825 bytes (added by wpmuguru, 14 years ago)
  • bp-core/bp-core-adminbar.php

     
    9191
    9292        $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';
    9393
    94         echo '<li' . $alt . '><a id="bp-admin-logout" class="logout" href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     94        if ( bp_core_is_multisite() )
     95                echo '<li' . $alt . '><a id="bp-admin-logout" class="logout" href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
     96        else
     97                echo '<li' . $alt . '><a id="bp-admin-logout" class="logout" href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';
    9598        echo '</ul>';
    9699        echo '</li>';
    97100}