mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user