From 0f819f1f57d7eca0d3d59be9d6b8fecc33917d27 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 21 Jun 2016 14:13:52 +0000 Subject: [PATCH] Admin: Allow for the consistent filtering of `auth_redirect_scheme` Merge of [37651] to the 3.9 branch. See #37047. Built from https://develop.svn.wordpress.org/branches/3.9@37764 git-svn-id: http://core.svn.wordpress.org/branches/3.9@37729 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 9152014435..285b160260 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -950,18 +950,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) ) { /**