Filter the cookie scheme in auth_redirect(). Props nbachiyski. fixes #10740
git-svn-id: http://svn.automattic.com/wordpress/trunk@11905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8c32c03b0
commit
c6debbd596
|
@ -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