diff --git a/functions.php b/functions.php index 75ff4cf0..72233f92 100755 --- a/functions.php +++ b/functions.php @@ -152,11 +152,7 @@ function get_post_category_link_exec($all = true, $class = '', $icon = '', $cid $out = mb_substr($out, 0, mb_strlen($out) - 1); return $out; } else { - if (!is_category()) { - $cate = $cats[0]; - } else { - $cate = get_category($cat); - } + $cate = $cats[0]; return ' ' . $icon . $cate->name . ''; } }