kasparsd/widget-context-wporg — pull request #5 by emilbjorklund (2013-04-18 10:06:16+00:00)
Title: Fixed bug with HTTPS detection

According to the PHP docs (http://php.net/manual/en/reserved.variables.server.php), the $_SERVER['HTTPS'] value should be empty if HTTPS is not used, but is set to the value "off" on some IIS configurations. I discovered that my web host (Webfaction) seemed to be using "off" as a value as well, for reasons unknown (they are most definitely not running IIS). This mis-detection caused all URL-dependant widgets to disappear. This change checks for either empty or the "off" value.