Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#2412 closed defect (bug) (fixed)

Sort by plugin name for real

Reported by: viper007bond's profile Viper007Bond Owned by: markjaquith's profile markjaquith
Milestone: Priority: normal
Severity: normal Version: 2.0.1
Component: Administration Keywords: bg|has-patch bg|needs-testing
Focuses: 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 (1)

alphabetical_plugins.diff (743 bytes) - added by Viper007Bond 18 years ago.

Download all attachments as: .zip

Change History (10)

#1 @Viper007Bond
18 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);

#2 @markjaquith
18 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

#3 @Viper007Bond
18 years ago

  • Keywords bg|needs-testing added

#4 @Viper007Bond
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Woot! Fixed: [4289]

#5 @markjaquith
17 years ago

  • Milestone changed from 2.1 to 2.0.5
  • Resolution fixed deleted
  • Status changed from closed to reopened

#6 @markjaquith
17 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4322]) sort plugins by plugin name, for real. fixes #2412

#7 @markjaquith
17 years ago

(In [4323]) sort plugins by plugin name, for real. fixes #2412

#8 @markjaquith
17 years ago

Further changes: [4324] and [4325] move plugin sorting (by Name) to get_plugins() so that it works for the Edit Plugins page too.

Did the stupid colon again.

#9 @(none)
17 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.