Make WordPress Core

Changeset 9758


Ignore:
Timestamp:
11/18/2008 05:41:50 PM (17 years ago)
Author:
ryan
Message:

Fix link categories row alternation. fixes #8272

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9757 r9758  
    110110 */
    111111function _cat_row( $category, $level, $name_override = false ) {
    112     static $row_class;
     112    static $row_class = '';
    113113
    114114    $category = get_category( $category, OBJECT, 'display' );
     
    270270 */
    271271function link_cat_row( $category, $name_override = false ) {
    272     global $class;
     272    static $row_class = '';
    273273
    274274    if ( !$category = get_term( $category, 'link_category', OBJECT, 'display' ) )
     
    298298    }
    299299
    300     $class = 'alternate' == $class ? '' : 'alternate';
     300    $row_class = 'alternate' == $row_class ? '' : 'alternate';
    301301    $qe_data = get_term_to_edit($category->term_id, 'link_category');
    302302
    303303    $category->count = number_format_i18n( $category->count );
    304304    $count = ( $category->count > 0 ) ? "<a href='link-manager.php?cat_id=$category->term_id'>$category->count</a>" : $category->count;
    305     $output = "<tr id='link-cat-$category->term_id' class='iedit $class'>";
     305    $output = "<tr id='link-cat-$category->term_id' class='iedit $row_class'>";
    306306    $columns = get_column_headers('edit-link-categories');
    307307    $hidden = get_hidden_columns('edit-link-categories');
Note: See TracChangeset for help on using the changeset viewer.