making the category links include the trailing slash

git-svn-id: https://develop.svn.wordpress.org/trunk@749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-01-10 01:46:27 +00:00
parent 7b9938f084
commit fefc13fc6a
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;