mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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
|
||||
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user