Changeset 8730 for trunk/wp-includes/pluggable.php
- Timestamp:
- 08/25/2008 08:40:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r8728 r8730 694 694 695 695 // If https is required and request is http, redirect 696 if ( $secure && !is_ssl() ) {696 if ( $secure && !is_ssl() && false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) { 697 697 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 698 698 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI'])); … … 706 706 if ( $user_id = wp_validate_auth_cookie() ) { 707 707 // If the user wants ssl but the session is not ssl, redirect. 708 if ( !$secure && get_user_option('use_ssl', $user_id) ) {708 if ( !$secure && get_user_option('use_ssl', $user_id) && false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) { 709 709 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 710 710 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
Note: See TracChangeset
for help on using the changeset viewer.