WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2006 09:35:25 AM (15 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
  • branches/2.0/wp-admin/plugins.php

    r4323 r4324  
    8989    $style = '';
    9090
    91     function sort_plugins($plug1, $plug2) {
    92         return strnatcasecmp($plug1['Name'], $plug2['Name']);
    93     }
    94 
    95     uasort($plugins, 'sort_plugins');
    96 
    9791    foreach($plugins as $plugin_file => $plugin_data) {
    9892        $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
Note: See TracChangeset for help on using the changeset viewer.