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:
parent
dbbb1802b6
commit
84ff4122d4
|
@ -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