Ticket #2412 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Sort by plugin name for real

Reported by: Viper007Bond Assigned to: markjaquith
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

alphabetical_plugins.diff (0.7 kB) - added by Viper007Bond on 02/08/06 13:06:20.

Change History

02/08/06 13:06:20 changed by Viper007Bond

  • attachment alphabetical_plugins.diff added.

02/08/06 13:07:53 changed by Viper007Bond

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);

02/09/06 09:30:17 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.

04/25/06 10:57:55 changed by Viper007Bond

  • keywords changed from bg|has-patch to bg|has-patch bg|needs-testing.

10/04/06 06:34:54 changed by Viper007Bond

  • status changed from assigned to closed.
  • resolution set to fixed.

Woot! Fixed: [4289]

10/04/06 08:56:22 changed by markjaquith

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone changed from 2.1 to 2.0.5.

10/04/06 08:56:46 changed by markjaquith

  • status changed from reopened to closed.
  • resolution set to fixed.

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

10/04/06 08:57:05 changed by markjaquith

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

10/04/06 09:40:38 changed by markjaquith

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.

11/30/06 19:41:51 changed by

  • milestone deleted.

Milestone 2.0.5 deleted