[wp-trac] [WordPress Trac] #31439: is_ssl not compatible with server - option for filter or hook
WordPress Trac
noreply at wordpress.org
Tue Feb 24 21:53:28 UTC 2015
#31439: is_ssl not compatible with server - option for filter or hook
----------------------------+-----------------------------
Reporter: MrAlexander.Ca | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.1.1
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Hello,
I have been developing with wordpress for over 7 years and its great, have
customized it a lot and achieved great results with it.
I came across an interesting situation where the server is actually
proxying another server and when visiting the https:// version the
"default" $_SERVER['HTTPS'] = 'on' or $_SERVER['SERVER_PORT'] = 443 does
not get set but instead the following takes place:
$_SERVER[HTTP_X_FORWARDED_PROTO] = 'https';
So even when the URL is https:// the function is_ssl() is not functioning
properly as its not one of the conditions to detect.
A solution would be to provide a hook to the is_ssl function and let these
rare and special cases be handled when necessary or incorporate the above
condition as well.
Thank you very much for looking into this, I will be glad to address any
questions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31439>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list