From cff1d9f8f23baa4b89d578e8e104da2f8afbf843 Mon Sep 17 00:00:00 2001 From: rboren Date: Tue, 15 Feb 2005 06:52:38 +0000 Subject: [PATCH] Fix category links when permalinks are not enabled. git-svn-id: http://svn.automattic.com/wordpress/trunk@2347 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index cceee07e57..1a68794b3e 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -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='') {