mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Admin: Allow for the consistent filtering of auth_redirect_scheme
Fixes #37047. Built from https://develop.svn.wordpress.org/trunk@37651 git-svn-id: http://core.svn.wordpress.org/trunk@37617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b0f64a91b3
commit
d75f77a410
@ -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) ) {
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-alpha-37650';
|
$wp_version = '4.6-alpha-37651';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user