is_ssl() broken -> https forced
-
Reading http://ww.wp.xz.cn/support/topic/ssl-enabled-by-default-for-loginadmin-how-to-remove the exact same problem is still occurring in the latest version of WordPress (3.3.1).
I am hosted on an suPHP system where I don’t have access to their config (linux/apache).
in wp-includes/functions.php:
function is_ssl() { if ( isset($_SERVER['HTTPS']) ) { if ( 'on' == strtolower($_SERVER['HTTPS']) ) return true; if ( '1' == $_SERVER['HTTPS'] ) return true; #} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { # return true; } return false; }The commenting out of the last check for SERVER_PORT fixes the problem that https is forced for all links, style sheets, images etc. which breaks my installation as I don’t have an SSL certificate.
This issue is 2 years old – please look into correcting this?
Amadeus
The topic ‘is_ssl() broken -> https forced’ is closed to new replies.