WordPress.org

Make WordPress Core

Changeset 3477


Ignore:
Timestamp:
01/24/2006 07:48:21 AM (16 years ago)
Author:
ryan
Message:

Sort plugins by plugin name, not file name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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';
Note: See TracChangeset for help on using the changeset viewer.