WordPress.org

Make WordPress Core

Changeset 13427 for trunk/wp-app.php


Ignore:
Timestamp:
02/26/2010 06:21:47 AM (10 years ago)
Author:
nacin
Message:

Use is_ssl() in place of manual SERVERHTTPS? == 'on' checks. fixes #11885

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r13377 r13427  
    225225
    226226        $this->script_name = array_pop(explode('/',$_SERVER['SCRIPT_NAME']));
    227         $this->app_base = get_bloginfo('url') . '/' . $this->script_name . '/';
    228         if ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) {
    229             $this->app_base = preg_replace( '/^http:\/\//', 'https://', $this->app_base );
    230         }
     227        $this->app_base = home_url( $this->script_name . '/' );
    231228
    232229        $this->selectors = array(
Note: See TracChangeset for help on using the changeset viewer.