Ticket #2412 (closed defect (bug): fixed)
Sort by plugin name for real
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0.1 |
| Severity: | normal | Keywords: | bg|has-patch bg|needs-testing |
| Cc: |
Description
Since sorting by plugin name has been reconsidered ( I was shot down last time :/), we might as well do it right then. In WordPress v2.0.1 / current SVN, the plugins are only sorted by filename (rather than directory -> filename as in pre-2.0.1).
Attached is a patch that actually results in plugins being sorted by plugin name, case insensitive. :)
Attachments
Change History
comment:1
Viper007Bond — 6 years ago
Since the .diff looks a bit goofy due to the code being removed also being included, here's the code I added, just by itself:
// Sort plugins by plugin name
foreach ($plugins as $plugin_file => $plugin_data) {
$plugin_names[] = $plugin_data['Name'];
}
$plugin_names = array_map('strtolower', $plugin_names);
array_multisort($plugin_names, SORT_ASC, $plugins);
comment:2
markjaquith — 6 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
comment:4
Viper007Bond — 5 years ago
- Status changed from assigned to closed
- Resolution set to fixed
Woot! Fixed: [4289]
comment:5
markjaquith — 5 years ago
- Status changed from closed to reopened
- Resolution fixed deleted
- Milestone changed from 2.1 to 2.0.5
comment:6
markjaquith — 5 years ago
- Status changed from reopened to closed
- Resolution set to fixed
comment:7
markjaquith — 5 years ago
comment:8
markjaquith — 5 years ago
Note: See
TracTickets for help on using
tickets.

