mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Populate PHP_SELF from REQUEST_URI if blank.
git-svn-id: https://develop.svn.wordpress.org/trunk@3319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ae35044963
commit
dcd75531cb
@ -3,7 +3,7 @@
|
||||
// On which page are we ?
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
if ( empty($PHP_SELF) )
|
||||
$PHP_SELF = $_SERVER["REQUEST_URI"];
|
||||
$_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
|
||||
|
||||
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||
$pagenow = $self_matches[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user