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 ofsiteurl
is (usually containing thehttps://
prefix).The return statement of get_option() should be changed from:
return apply_filters( 'option_' . $setting, maybe_unserialize($value) );
to:
if($_SERVER['HTTPS'] == '') { return apply_filters( 'option_' . $setting, maybe_unserialize($value) ); } else { return str_replace('https://', 'https://', apply_filters( 'option_' . $setting, maybe_unserialize($value) )); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Patch Request for SSL’ is closed to new replies.