Admin: Allow for the consistent filtering of `auth_redirect_scheme`
Fixes #37047. git-svn-id: https://develop.svn.wordpress.org/trunk@37651 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ad4a72960
commit
727a94b710
|
@ -986,9 +986,6 @@ function auth_redirect() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_user_admin() ) {
|
|
||||||
$scheme = 'logged_in';
|
|
||||||
} else {
|
|
||||||
/**
|
/**
|
||||||
* Filters the authentication redirect scheme.
|
* Filters the authentication redirect scheme.
|
||||||
*
|
*
|
||||||
|
@ -997,7 +994,6 @@ function auth_redirect() {
|
||||||
* @param string $scheme Authentication redirect scheme. Default empty.
|
* @param string $scheme Authentication redirect scheme. Default empty.
|
||||||
*/
|
*/
|
||||||
$scheme = apply_filters( 'auth_redirect_scheme', '' );
|
$scheme = apply_filters( 'auth_redirect_scheme', '' );
|
||||||
}
|
|
||||||
|
|
||||||
if ( $user_id = wp_validate_auth_cookie( '', $scheme) ) {
|
if ( $user_id = wp_validate_auth_cookie( '', $scheme) ) {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue