Fix category links when permalinks are not enabled.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-15 06:52:38 +00:00
parent d720a8ef0a
commit cff1d9f8f2
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function get_category_link($category_id) {
if ( empty($catlink) ) {
$file = get_settings('home') . '/' . get_settings('blogfilename');
$catlink = $file . '?cat=' . $category_ID;
$catlink = $file . '?cat=' . $category_id;
} else {
if ($cache_categories[$category_id]->category_nicename)
$category_nicename = $cache_categories[$category_id]->category_nicename;
@ -43,7 +43,7 @@ function get_category_link($category_id) {
$catlink = str_replace('%category%', $category_nicename, $catlink);
$catlink = get_settings('home') . trailingslashit($catlink);
}
return $catlink;
return apply_filters('category_link', $catlink, $category_id);
}
function the_category($separator = '', $parents='') {