From fefc13fc6a307c9e0f07e62942052820b2c2a36c Mon Sep 17 00:00:00 2001 From: Alex King Date: Sat, 10 Jan 2004 01:46:27 +0000 Subject: [PATCH] making the category links include the trailing slash git-svn-id: https://develop.svn.wordpress.org/trunk@749 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-permalink.php | 2 +- wp-includes/template-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 20e737dbad..c447dc9f17 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -151,7 +151,7 @@ $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); +RewriteRule ^?([0-9a-z-]+)?/? index.php?category_name=$1 [QSA] get_var("SELECT category_nicename FROM $tablecategories WHERE cat_ID = $category_id"); // Get any static stuff from the front $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); - $link = $siteurl . $front . 'category/' . $category_nicename; + $link = $siteurl . $front . 'category/' . $category_nicename . '/'; } if ($echo) echo $link;