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:
parent
9876a3606f
commit
7b662dccc8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue