is_ssl does not recognize ssl when behind a proxy
|Reported by:||ziodave||Owned by:|
There are cases in which WordPress is installed as backed server to a front-end proxy.
The front-end proxy is set to use SSL while the connection between the front-end proxy and the back-end WordPress happens in plain HTTP.
In the above scenario WordPress does not realize that clients are connecting via https and returns the incorrect url when using functions that rely on is_ssl (e.g. plugins_url).
I would suggest adding a global configuration constant, e.g. FORCE_SSL that would forse is_ssl to always return true.