Use is_ssl() in place of manual SERVER['HTTPS'] == 'on' checks. fixes #11885

git-svn-id: https://develop.svn.wordpress.org/trunk@13427 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-26 06:21:47 +00:00
parent 9a033bf679
commit e7fa18385a
4 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -224,10 +224,7 @@ class AtomServer {
function AtomServer() {
$this->script_name = array_pop(explode('/',$_SERVER['SCRIPT_NAME']));
$this->app_base = get_bloginfo('url') . '/' . $this->script_name . '/';
if ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) {
$this->app_base = preg_replace( '/^http:\/\//', 'https://', $this->app_base );
}
$this->app_base = home_url( $this->script_name . '/' );
$this->selectors = array(
'@/service$@' =>