mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
move plugin sorting (by Name) to get_plugins() so that it works for the Edit Plugins page too. fixes: #2412
git-svn-id: https://develop.svn.wordpress.org/trunk@4325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,12 +90,6 @@ if (empty($plugins)) {
|
||||
<?php
|
||||
$style = '';
|
||||
|
||||
function sort_plugins($plug1, $plug2) {
|
||||
return strnatcasecmp($plug1['Name'], $plug2['Name']);
|
||||
}
|
||||
|
||||
uasort($plugins, 'sort_plugins');
|
||||
|
||||
foreach($plugins as $plugin_file => $plugin_data) {
|
||||
$style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user