mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Admin: Allow for the consistent filtering of auth_redirect_scheme
Merge of [37651] to the 4.3 branch. See #37047. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@37760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b7b907918
commit
20b9df855e
@ -1021,18 +1021,14 @@ function auth_redirect() {
|
||||
}
|
||||
}
|
||||
|
||||
if ( is_user_admin() ) {
|
||||
$scheme = 'logged_in';
|
||||
} else {
|
||||
/**
|
||||
* Filter the authentication redirect scheme.
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $scheme Authentication redirect scheme. Default empty.
|
||||
*/
|
||||
$scheme = apply_filters( 'auth_redirect_scheme', '' );
|
||||
}
|
||||
/**
|
||||
* Filters the authentication redirect scheme.
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $scheme Authentication redirect scheme. Default empty.
|
||||
*/
|
||||
$scheme = apply_filters( 'auth_redirect_scheme', '' );
|
||||
|
||||
if ( $user_id = wp_validate_auth_cookie( '', $scheme) ) {
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user