mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
+1
-4
@@ -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$@' =>
|
||||
|
||||
Reference in New Issue
Block a user