Changeset 15746 for trunk/wp-includes/pluggable.php
- Timestamp:
- 10/07/2010 07:34:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r15682 r15746 82 82 83 83 if ( ! $user = wp_validate_auth_cookie() ) { 84 if ( is_ admin() || empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) {84 if ( is_blog_admin() || is_network_admin() || empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) { 85 85 wp_set_current_user(0); 86 86 return false; … … 776 776 } 777 777 778 if ( $user_id = wp_validate_auth_cookie( '', apply_filters( 'auth_redirect_scheme', '' ) ) ) { 778 if ( is_user_admin() ) 779 $scheme = 'logged_in'; 780 else 781 $scheme = apply_filters( 'auth_redirect_scheme', '' ); 782 783 if ( $user_id = wp_validate_auth_cookie( '', $scheme) ) { 779 784 do_action('auth_redirect', $user_id); 780 785
Note: See TracChangeset
for help on using the changeset viewer.