Changeset 3911

Show
Ignore:
Timestamp:
06/24/06 05:54:52 (3 years ago)
Author:
ryan
Message:

Fixed pagenow regex. Props herr_ernst. fixes #2843

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/vars.php

    r3889 r3911  
    22 
    33// On which page are we ? 
    4 if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) { 
     4if (preg_match('#([^/]+\.php)$#', $PHP_SELF, $self_matches)) { 
    55    $pagenow = $self_matches[1]; 
    66} else if (strstr($PHP_SELF, '?')) {