Custom HTTPS port support
-
I would like to see the support for custom HTTPS ports in WordPress, as I have my vhost SSL port set to the non-default value.
I managed to somewhat modify its code to get FORCE_SSL_LOGIN work this way.
Here is the change I made:
In file wp-includes/link-template.php, in function site_url, starting from line 1756:
$url = str_replace( 'https://', "{$scheme}://", get_option('siteurl') ); //beginning of custom code if ( ($scheme == 'https') && defined('SSL_CUSTOM_PORT') ) $url .= ':'.SSL_CUSTOM_PORT; //end of custom code if ( !empty($path) && is_string($path) && strpos($path, '..') === false ) $url .= '/' . ltrim($path, '/');
With this modification I can login over SSL with SSL_CUSTOM_PORT set, but it would be great to see FORCE_SSL_ADMIN working with non-default ports too.
Any help would be appreciated.
(Also, I was quite uncertain whether to post it here or in the “Plugins and Hacks” forum, I hope this is the good place for it)
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Custom HTTPS port support’ is closed to new replies.