]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/pluggable.php
Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-includes / pluggable.php
index 31533d5113d37094ce395e79c902fcfdaa75a4fd..65419a88f0cd97f7d116e248cfab47f251486698 100644 (file)
@@ -984,18 +984,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) ) {
                /**