WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2006 09:36:21 AM (12 years ago)
Author:
markjaquith
Message:

move plugin sorting (by Name) to get_plugins() so that it works for the Edit Plugins page too. fixes: #2412

File:
1 edited

Legend:

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

    r4322 r4325  
    9191    $style = '';
    9292
    93     function sort_plugins($plug1, $plug2) {
    94         return strnatcasecmp($plug1['Name'], $plug2['Name']);
    95     }
    96 
    97     uasort($plugins, 'sort_plugins');
    98 
    9993    foreach($plugins as $plugin_file => $plugin_data) {
    10094        $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
Note: See TracChangeset for help on using the changeset viewer.