Changeset 3477

Show
Ignore:
Timestamp:
01/24/06 07:48:21 (2 years ago)
Author:
ryan
Message:

Sort plugins by plugin name, not file name.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/plugins.php

    r3365 r3477  
    8888<?php 
    8989    $style = ''; 
     90 
     91    function sort_plugins($plug1, $plug2) { 
     92        return strnatcasecmp($plug1['Name'], $plug2['Name']); 
     93    } 
     94     
     95    usort($plugins, 'sort_plugins'); 
     96 
    9097    foreach($plugins as $plugin_file => $plugin_data) { 
    9198        $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';