Patch from Adi Sieker
git-svn-id: https://develop.svn.wordpress.org/trunk@2160 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0cae2ba036
commit
231c6d4b41
|
@ -322,7 +322,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
|
||||||
$thelist = "";
|
$thelist = "";
|
||||||
|
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
if ((intval($hide_empty) == 0 || isset($category_posts["$category->cat_ID"])) && (!$hierarchical || $category->category_parent == $child_of) && ($children || $category->category_parent == 0)) {
|
if ((intval($hide_empty) == 0 || isset($category_posts["$category->cat_ID"])) && (!$hierarchical || $category->category_parent == $child_of) ) {
|
||||||
$num_found++;
|
$num_found++;
|
||||||
$link = '<a href="'.get_category_link(0, $category->cat_ID, $category->category_nicename).'" ';
|
$link = '<a href="'.get_category_link(0, $category->cat_ID, $category->category_nicename).'" ';
|
||||||
if ($use_desc_for_title == 0 || empty($category->category_description)) {
|
if ($use_desc_for_title == 0 || empty($category->category_description)) {
|
||||||
|
@ -353,7 +353,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
|
||||||
$link .= '>';
|
$link .= '>';
|
||||||
|
|
||||||
if (! empty($feed_image)) {
|
if (! empty($feed_image)) {
|
||||||
$link .= "<img src=\"$feed_image\" border=\"0\"$alt$title" . ' />';
|
$link .= "<img src='$feed_image' $alt$title" . ' />';
|
||||||
} else {
|
} else {
|
||||||
$link .= $name;
|
$link .= $name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue