mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix category links when permalinks are not enabled.
git-svn-id: https://develop.svn.wordpress.org/trunk@2347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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='') {
|
||||
|
||||
Reference in New Issue
Block a user