Make WordPress Core


Ignore:
Timestamp:
05/05/2009 04:59:19 AM (16 years ago)
Author:
azaozz
Message:

Add column "Rating" in Link Manager, props hakre, fixes #9443

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r11190 r11191  
    175175            $short_url = substr($short_url, 0, 32).'...';
    176176        $visible = ($link->link_visible == 'Y') ? __('Yes') : __('No');
     177        $rating  = $link->link_rating;
    177178        $style = ($alt % 2) ? '' : ' class="alternate"';
    178179        ++ $alt;
     
    185186            if ( in_array($column_name, $hidden) )
    186187                $style = ' style="display:none;"';
    187             if ( 'visible' == $column_name )
    188                 $style = empty($style) ? ' style="text-align: center;"' : ' style="text-align: center; display: none;"';
     188
    189189            $attributes = "$class$style";
    190190
     
    234234                    ?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php
    235235                    break;
     236                case 'rating':
     237                    ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
     238                    break;
    236239                default:
    237240                    ?>
Note: See TracChangeset for help on using the changeset viewer.