Changeset 2371 for trunk/bb-includes/functions.bb-pluggable.php
- Timestamp:
- 08/18/2009 07:04:40 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/functions.bb-pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.bb-pluggable.php
r2366 r2371 6 6 nocache_headers(); 7 7 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 ) ); 9 13 } else { 10 14 wp_redirect( bb_get_uri( null, null, BB_URI_CONTEXT_HEADER ) );
Note: See TracChangeset
for help on using the changeset viewer.