Categories with zero posts and posts with no comments no longer link to those empty views in the admin. fixes #3493

git-svn-id: https://develop.svn.wordpress.org/trunk@4659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2006-12-21 23:40:16 +00:00
parent f95b191dab
commit 2c190706cd
2 changed files with 5 additions and 4 deletions

View File

@@ -760,11 +760,12 @@ function _cat_row( $category, $level, $name_override = false ) {
$category->category_count = number_format( $category->category_count );
$category->link_count = number_format( $category->link_count );
$posts_count = ( $category->category_count > 0 ) ? "<a href='edit.php?cat=$category->cat_ID'>$category->category_count</a>" : $category->category_count;
return "<tr id='cat-$category->cat_ID'$class>
<th scope='row' style='text-align: center'>$category->cat_ID</th>
<td>" . ( $name_override ? $name_override : $pad . ' ' . $category->cat_name ) . "</td>
<td>$category->category_description</td>
<td align='center'><a href='edit.php?cat=$category->cat_ID'>$category->category_count</a></td>
<td align='center'>$posts_count</td>
<td align='center'>$category->link_count</td>
<td>$edit</td>\n\t</tr>\n";
}