Skip to:
Content

bbPress.org

Ticket #3199: bbp_logout_url.patch

File bbp_logout_url.patch, 802 bytes (added by nevis2us, 8 years ago)
  • wp-content/plugins/bbpress/includes/common/functions.php

     
    13791379                $redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    13801380
    13811381                // Sanitize $redirect_to and add it to full $url
    1382                 $redirect_to = add_query_arg( array( 'loggedout'   => 'true'                    ), esc_url( $redirect_to ) );
     1382                $redirect_to = add_query_arg( array( 'loggedout'   => 'true'                    ), $redirect_to );
    13831383                $url         = add_query_arg( array( 'redirect_to' => urlencode( $redirect_to ) ), $url                    );
    13841384        }
    13851385