From 27a622843015453310f4597f51b2f214d9c9f2d7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Nov 2008 17:41:50 +0000 Subject: [PATCH] Fix link categories row alternation. fixes #8272 git-svn-id: https://develop.svn.wordpress.org/trunk@9758 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 631cd4875d..91a0944e2f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -109,7 +109,7 @@ function _cat_rows( $categories, &$count, $parent = 0, $level = 0, $page = 1, $p * @return unknown */ function _cat_row( $category, $level, $name_override = false ) { - static $row_class; + static $row_class = ''; $category = get_category( $category, OBJECT, 'display' ); @@ -269,7 +269,7 @@ function inline_edit_term_row($type) { * @return unknown */ function link_cat_row( $category, $name_override = false ) { - global $class; + static $row_class = ''; if ( !$category = get_term( $category, 'link_category', OBJECT, 'display' ) ) return false; @@ -297,12 +297,12 @@ function link_cat_row( $category, $name_override = false ) { $edit = $name; } - $class = 'alternate' == $class ? '' : 'alternate'; + $row_class = 'alternate' == $row_class ? '' : 'alternate'; $qe_data = get_term_to_edit($category->term_id, 'link_category'); $category->count = number_format_i18n( $category->count ); $count = ( $category->count > 0 ) ? "$category->count" : $category->count; - $output = ""; + $output = ""; $columns = get_column_headers('edit-link-categories'); $hidden = get_hidden_columns('edit-link-categories'); foreach ( $columns as $column_name => $column_display_name ) {