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
This commit is contained in:
parent
eac87a3f7d
commit
bb81b561bd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user