From 25db37a7a19c83a1561a7b17936ebe3cbf31da55 Mon Sep 17 00:00:00 2001 From: alex_t_king Date: Sat, 10 Jan 2004 01:46:27 +0000 Subject: [PATCH] making the category links include the trailing slash git-svn-id: http://svn.automattic.com/wordpress/trunk@749 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 20e737dba..c447dc9f1 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;