Support » Requests and Feedback » Patch Request for SSL

  • The get_option() function in /wp-includes/settings.php needs patching to correctly handle SSL connections. At current, the site will fetch the siteurl option from the db without modification, therefore making all permalinks and page links start with whatever the value of siteurl is (usually containing the http:// prefix).

    The return statement of get_option() should be changed from:
    return apply_filters( 'option_' . $setting, maybe_unserialize($value) );


    if($_SERVER['HTTPS'] == '') {
    return apply_filters( 'option_' . $setting, maybe_unserialize($value) );
    } else {
    return str_replace('http://', 'https://', apply_filters( 'option_' . $setting, maybe_unserialize($value) ));

Viewing 4 replies - 1 through 4 (of 4 total)
  • Apologies for the sort-of-double-post. Accidentaly closed the tab half way through sending the post. Evidently only half of the request went through.

    I could not find a wp-includes/settings.php in WP 2.2.2?

    And I need to find out how to handle the issue of secure/inseucre warnings on an SSL page …

    lordcore are you around?

    Can anyone tell which program in 2.2.1 corresponds to what he has posted above?

    okay so it is not /wp-includes/settings.php but just settings.php

    but there is no code such as that mentioned.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Patch Request for SSL’ is closed to new replies.