Changeset 8182 for trunk/wp-includes/functions.php
- Timestamp:
- 06/24/2008 05:36:21 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r8100 r8182 2127 2127 } 2128 2128 2129 function wp_guess_url() { 2130 if ( defined('WP_SITEURL') && '' != WP_SITEURL ) { 2131 $url = WP_SITEURL; 2132 } else { 2133 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 2134 $url = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 2135 } 2136 return $url; 2137 } 2138 2129 2139 ?>
Note: See TracChangeset
for help on using the changeset viewer.