Sort plugins by plugin name, not file name.
git-svn-id: https://develop.svn.wordpress.org/trunk@3477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3855fbe248
commit
a0467454ef
|
@ -87,6 +87,13 @@ if (empty($plugins)) {
|
|||
</tr>
|
||||
<?php
|
||||
$style = '';
|
||||
|
||||
function sort_plugins($plug1, $plug2) {
|
||||
return strnatcasecmp($plug1['Name'], $plug2['Name']);
|
||||
}
|
||||
|
||||
usort($plugins, 'sort_plugins');
|
||||
|
||||
foreach($plugins as $plugin_file => $plugin_data) {
|
||||
$style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
|
||||
|
||||
|
|
Loading…
Reference in New Issue