making the category links include the trailing slash

git-svn-id: http://svn.automattic.com/wordpress/trunk@749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-01-10 01:46:27 +00:00
parent 9fe4b92e20
commit 25db37a7a1
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
<textarea rows="5" style="width: 100%;">RewriteEngine On
RewriteBase <?php echo $site_root; ?>
RewriteRule ^<?php echo $match; echo '$ ' . $site_root . $query ?> [QSA]
RewriteRule ^<?php echo $catmatch; ?>(.*) <?php echo $site_root; ?>index.php?category_name=$1 [QSA]</textarea>
RewriteRule ^<?php echo $catmatch; ?>?([0-9a-z-]+)?/? <?php echo $site_root; ?>index.php?category_name=$1 [QSA]</textarea>
</form>
</div>
<?php

View File

@ -1358,7 +1358,7 @@ function get_category_link($echo = false, $category_id, $category_nicename) {
if ('' == $category_nicename) $category_nicename = $wpdb->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;