From 7059985cf132185b80acb5b566607dd766f53685 Mon Sep 17 00:00:00 2001 From: matt 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: http://svn.automattic.com/wordpress/trunk@2602 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 7516edc51..6e29a1fbd 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);