Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/18/2009 07:04:40 AM (16 years ago)
Author:
sambauers
Message:

Full URL redirecting from bb_auth()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-pluggable.php

    r2366 r2371  
    66        nocache_headers();
    77        if ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
    8             wp_redirect( bb_get_uri( 'bb-login.php', array( 're' => $_SERVER['REQUEST_URI'] ), BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
     8            $protocol = 'http://';
     9            if ( is_ssl() ) {
     10                $protocol = 'https://';
     11            }
     12            wp_redirect( bb_get_uri( 'bb-login.php', array( 'redirect_to' => $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ), BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
    913        } else {
    1014            wp_redirect( bb_get_uri( null, null, BB_URI_CONTEXT_HEADER ) );
Note: See TracChangeset for help on using the changeset viewer.