Fixed pagenow regex. Props herr_ernst. fixes #2843

git-svn-id: http://svn.automattic.com/wordpress/trunk@3910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-24 05:54:25 +00:00
parent 9876a3606f
commit 7b662dccc8
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
// On which page are we ? // 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]; $pagenow = $self_matches[1];
} else if (strstr($PHP_SELF, '?')) { } else if (strstr($PHP_SELF, '?')) {
$pagenow = explode('/', $PHP_SELF); $pagenow = explode('/', $PHP_SELF);