mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user