Make $pagenow work with PATH_INFO.
git-svn-id: https://develop.svn.wordpress.org/trunk@1663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d5b58ba8d5
commit
c3ad9d60cf
|
@ -37,16 +37,20 @@ $wp_htmltranswinuni = array(
|
||||||
'' => '',
|
'' => '',
|
||||||
'ž' => '',
|
'ž' => '',
|
||||||
'Ÿ' => 'Ÿ'
|
'Ÿ' => 'Ÿ'
|
||||||
);
|
);
|
||||||
|
|
||||||
// On which page are we ?
|
// On which page are we ?
|
||||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||||
$pagenow = explode('/', $PHP_SELF);
|
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||||
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
|
$pagenow = $self_matches[1];
|
||||||
$pagenow = explode('?', $pagenow);
|
} else {
|
||||||
$pagenow = $pagenow[0];
|
$pagenow = explode('/', $PHP_SELF);
|
||||||
if (($querystring_start == '/') && ($pagenow != 'post.php')) {
|
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
|
||||||
$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
|
$pagenow = explode('?', $pagenow);
|
||||||
|
$pagenow = $pagenow[0];
|
||||||
|
if (($querystring_start == '/') && ($pagenow != 'post.php')) {
|
||||||
|
$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple browser detection
|
// Simple browser detection
|
||||||
|
|
Loading…
Reference in New Issue