From 07fc6d5bac9afb378545c41fdb26fdde7f3ae658 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 13 May 2005 21:11:26 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=1348 - rboren - perhaps we should standardize on REQUEST_URI and clean up in wp-settings? git-svn-id: https://develop.svn.wordpress.org/trunk@2602 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 7516edc518..6e29a1fbde 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -365,7 +365,7 @@ function get_pagenum_link($pagenum = 1) { $qstr = preg_replace('|^'. $home_root . '|', '', $qstr); $qstr = preg_replace('|^/+|', '', $qstr); - $index = $_SERVER['SCRIPT_NAME']; + $index = $_SERVER['PHP_SELF']; $index = preg_replace('|^'. $home_root . '|', '', $index); $index = preg_replace('|^/+|', '', $index);