Skip to:
Content

bbPress.org

Ticket #1645: 1645.diff

File 1645.diff, 717 bytes (added by Mamaduka, 13 years ago)
  • bbp-includes/bbp-common-functions.php

     
    10711071                        $redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '';
    10721072                }
    10731073
    1074                 $redirect_to = home_url( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
     1074                $redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    10751075
    10761076                // Sanitize $redirect_to and add it to full $url
    10771077                $redirect_to = add_query_arg( array( 'loggedout'   => 'true'                    ), esc_url( $redirect_to ) );