Changeset 1273219
- Timestamp:
- 10/26/2015 02:00:17 PM (10 years ago)
- File:
-
- 1 edited
-
wp-portability/trunk/wp-portability.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-portability/trunk/wp-portability.php
r1273209 r1273219 62 62 $protocol = 'http://'; 63 63 } 64 $root = realpath($_SERVER['DOCUMENT_ROOT']); 65 $path = s tr_replace("\\", "/", substr(ABSPATH, strlen($root)));66 $url = "{$protocol}{$ root}{$path}";64 65 $path = substr(ABSPATH, strlen(realpath($_SERVER['DOCUMENT_ROOT']))); 66 $url = "{$protocol}{$_SERVER['HTTP_HOST']}{$path}"; 67 67 if(!defined('WP_SITEURL') && $this->settings['dynamic_siteurl']){ 68 68 define('WP_SITEURL', $url);
Note: See TracChangeset
for help on using the changeset viewer.