WordPress.org

Ready to get started?Download WordPress

Forums

is_ssl() broken -> https forced (1 post)

  1. amadeuspzs
    Member
    Posted 2 years ago #

    Reading http://wordpress.org/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

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by louis vuitton fake
  • This topic is not resolved
  • WordPress version: 3.3.1