Changeset 3382
- Timestamp:
- 12/29/2005 11:11:26 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-includes/vars.php (modified) (1 diff)
-
wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/vars.php
r3319 r3382 2 2 3 3 // On which page are we ? 4 $PHP_SELF = $_SERVER['PHP_SELF'];5 if ( empty($PHP_SELF) )6 $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);7 8 4 if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) { 9 5 $pagenow = $self_matches[1]; -
trunk/wp-settings.php
r3069 r3382 43 43 unset($_SERVER['PATH_INFO']); 44 44 45 // Fix empty PHP_SELF 46 $PHP_SELF = $_SERVER['PHP_SELF']; 47 if ( empty($PHP_SELF) ) 48 $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]); 45 49 46 50 if ( !(phpversion() >= '4.1') )
Note: See TracChangeset
for help on using the changeset viewer.