From 2146da7f5c5f0dde94fdf7d98301c9da1823b636 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 2 Jun 2004 21:43:18 +0000 Subject: [PATCH] Added consistant trailing slash. git-svn-id: https://develop.svn.wordpress.org/trunk@1384 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 29708eabab..e2b0657838 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -341,7 +341,7 @@ function get_pagenum_link($pagenum = 1){ $home_root = preg_replace('|/+|i', '/', $home_root); $qstr = str_replace($home_root . '/', '', $qstr); $qstr = preg_replace('|^/+|', '', $qstr); - return preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit(get_settings('home')).$qstr); + return preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_settings('home') ) . trailingslashit($qstr) ); } function next_posts($max_page = 0) { // original by cfactor at cooltux.org