Fixed pagenow regex. Props herr_ernst. fixes #2843

git-svn-id: https://develop.svn.wordpress.org/trunk@3910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-24 05:54:25 +00:00
parent dbbb1802b6
commit 84ff4122d4
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php
// On which page are we ?
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
if (preg_match('#([^/]+\.php)$#', $PHP_SELF, $self_matches)) {
$pagenow = $self_matches[1];
} else if (strstr($PHP_SELF, '?')) {
$pagenow = explode('/', $PHP_SELF);