Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/25/2009 07:01:30 PM (16 years ago)
Author:
apeatling
Message:

Fixes #606

File:
1 edited

Legend:

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

    r1250 r1254  
    535535
    536536function bp_activation_page( $echo = true ) {
     537    global $bp;
     538   
    537539    if ( bp_has_custom_activation_page() ) {
    538540        if ( $echo )
    539             echo site_url(ACTIVATION_SLUG);
     541            echo $bp->root_domain . '/' . ACTIVATION_SLUG;
    540542        else
    541             return site_url(ACTIVATION_SLUG);
     543            return $bp->root_domain . '/' . ACTIVATION_SLUG;
    542544    } else {
    543545        if ( $echo )
    544             echo site_url('wp-activate.php');
     546            echo $bp->root_domain . '/wp-activate.php';
    545547        else
    546             return site_url('wp-activate.php');
     548            return $bp->root_domain . '/wp-activate.php';
    547549    }
    548550}
     
    551553    global $bp;
    552554   
    553     return apply_filters( 'bp_search_form_action', site_url('search') );
     555    return apply_filters( 'bp_search_form_action', $bp->root_domain . '/search' );
    554556}
    555557
     
    590592
    591593function bp_login_bar() {
     594    global $bp;
     595   
    592596    if ( !is_user_logged_in() ) : ?>
    593597       
    594         <form name="login-form" id="login-form" action="<?php echo site_url( '/wp-login.php' ) ?>" method="post">
     598        <form name="login-form" id="login-form" action="<?php echo $bp->root_domain . '/wp-login.php' ?>" method="post">
    595599            <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />
    596600            <input type="password" name="pwd" id="user_pass" class="input" value="" />
     
    614618            <?php
    615619                if ( function_exists('wp_logout_url') ) {
    616                     $logout_link = '/ <a href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
     620                    $logout_link = '/ <a href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
    617621                } else {
    618                     $logout_link = '/ <a href="' . site_url( '/wp-login.php?action=logout&amp;redirect_to=' . site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';                 
     622                    $logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&amp;redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a>';                   
    619623                }           
    620624               
Note: See TracChangeset for help on using the changeset viewer.