Changeset 13427
- Timestamp:
- 02/26/2010 06:21:47 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r13377 r13427 225 225 226 226 $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 . '/' ); 231 228 232 229 $this->selectors = array( -
trunk/wp-includes/canonical.php
r13377 r13427 43 43 if ( !$requested_url ) { 44 44 // build the URL in the address bar 45 $requested_url = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';45 $requested_url = is_ssl() ? 'https://' : 'http://'; 46 46 $requested_url .= $_SERVER['HTTP_HOST']; 47 47 $requested_url .= $_SERVER['REQUEST_URI']; -
trunk/wp-includes/functions.php
r13413 r13427 3338 3338 $url = WP_SITEURL; 3339 3339 } else { 3340 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';3340 $schema = is_ssl() ? 'https://' : 'http://'; 3341 3341 $url = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 3342 3342 } -
trunk/wp-login.php
r13242 r13427 340 340 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); 341 341 342 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';342 $schema = is_ssl() ? 'https://' : 'http://'; 343 343 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) 344 344 update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
Note: See TracChangeset
for help on using the changeset viewer.