WordPress.org

Make WordPress Core

Changeset 3911


Ignore:
Timestamp:
06/24/2006 05:54:52 AM (12 years ago)
Author:
ryan
Message:

Fixed pagenow regex. Props herr_ernst. fixes #2843

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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, '?')) {
Note: See TracChangeset for help on using the changeset viewer.