WordPress.org

Make WordPress Core

Ticket #2253: 2253b.diff

File 2253b.diff, 911 bytes (added by Nazgul, 7 years ago)
  • wp-admin/admin-functions.php

     
    748748                <th scope='row' style='text-align: center'>$category->cat_ID</th> 
    749749                <td>" . ( $name_override ? $name_override : $pad . ' ' . $category->cat_name ) . "</td> 
    750750                <td>$category->category_description</td> 
    751                 <td align='center'>$category->category_count</td> 
    752                 <td align='center'>$category->link_count</td> 
     751                <td align='center'>" . ( $category->category_count > 0 ? "<a href='edit.php?cat=$category->cat_ID'>$category->category_count</a>" : $category->category_count ) . "</td> 
     752                <td align='center'>" . ( $category->link_count > 0 ? "<a href='link-manager.php?cat_id=$category->cat_ID'>$category->link_count</a>" : $category->link_count ) . "</td> 
    753753                <td>$edit</td>\n\t</tr>\n"; 
    754754} 
    755755