mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 13:23:40 +01:00
Fix row alternation for categories screen
git-svn-id: https://develop.svn.wordpress.org/trunk@9691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1506260496
commit
1314685848
@ -111,7 +111,7 @@ function _cat_rows( $categories, &$count, $parent = 0, $level = 0, $page = 1, $p
|
||||
* @return unknown
|
||||
*/
|
||||
function _cat_row( $category, $level, $name_override = false ) {
|
||||
global $class;
|
||||
static $row_class;
|
||||
|
||||
$category = get_category( $category );
|
||||
|
||||
@ -137,12 +137,12 @@ function _cat_row( $category, $level, $name_override = false ) {
|
||||
$edit = $name;
|
||||
}
|
||||
|
||||
$class = 'alternate' == $class ? '' : 'alternate';
|
||||
$row_class = 'alternate' == $row_class ? '' : 'alternate';
|
||||
$qe_data = get_category_to_edit($category->term_id);
|
||||
|
||||
$category->count = number_format_i18n( $category->count );
|
||||
$posts_count = ( $category->count > 0 ) ? "<a href='edit.php?cat=$category->term_id'>$category->count</a>" : $category->count;
|
||||
$output = "<tr id='cat-$category->term_id' class='iedit $class'>";
|
||||
$output = "<tr id='cat-$category->term_id' class='iedit $row_class'>";
|
||||
|
||||
$columns = get_column_headers('category');
|
||||
$hidden = (array) get_user_option( 'manage-category-columns-hidden' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user