WordPress.org

Make WordPress Core

Changeset 3231


Ignore:
Timestamp:
11/29/2005 02:33:25 AM (15 years ago)
Author:
ryan
Message:

If PHP_SELF is empty, use REQUEST_URI when determining pagenow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r3007 r3231  
    33// On which page are we ?
    44$PHP_SELF = $_SERVER['PHP_SELF'];
     5if ( empty($PHP_SELF) )
     6    $PHP_SELF = $_SERVER["REQUEST_URI"];
     7
    58if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
    69    $pagenow = $self_matches[1];
Note: See TracChangeset for help on using the changeset viewer.