Ticket #1645: 1645.diff
File 1645.diff, 717 bytes (added by , 13 years ago) |
---|
-
bbp-includes/bbp-common-functions.php
1071 1071 $redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : ''; 1072 1072 } 1073 1073 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']; 1075 1075 1076 1076 // Sanitize $redirect_to and add it to full $url 1077 1077 $redirect_to = add_query_arg( array( 'loggedout' => 'true' ), esc_url( $redirect_to ) );