From bb81b561bd5d2a821ba09b158aeb5e8fa912e78a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 8 Sep 2009 15:25:29 +0000 Subject: [PATCH] Filter the cookie scheme in auth_redirect(). Props nbachiyski. fixes #10740 git-svn-id: https://develop.svn.wordpress.org/trunk@11905 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index b1b7b61267..2f7887f864 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -750,7 +750,7 @@ function auth_redirect() { } } - if ( $user_id = wp_validate_auth_cookie() ) { + if ( $user_id = wp_validate_auth_cookie( '', apply_filters( 'auth_redirect_scheme', '' ) ) ) { do_action('auth_redirect', $user_id); // If the user wants ssl but the session is not ssl, redirect.