Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#2688 closed defect (bug) (duplicate)

plugin order is wrong

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: bg|has-patch, bg|needs-testing
Focuses: Cc:

Description

in wp-admin/plugins.php, they're sorted via:

uksort($plugins, 'sort_plugins');

it should be:

usort($plugins, 'sort_plugins');

Attachments (1)

2688.plugins.diff (494 bytes) - added by leftjustified 19 years ago.
fixes #2623

Download all attachments as: .zip

Change History (7)

#1 @Denis-de-Bernardy
19 years ago

  • Milestone 2.0.3 deleted

or not... by in any event, the order is completely wrong. a var_dump of the $plug1 and $plug2 variable of the sort function highlights this quite clearly.

#2 @Denis-de-Bernardy
19 years ago

uasort instead of uksort does the trick

#3 @leftjustified
19 years ago

  • Keywords bg|has-patch bg|needs-testing added

#4 @leftjustified
19 years ago

Ha! Whoops, the comment on the attached file should read 'fixes #2688'.

#5 @Viper007Bond
19 years ago

Or how about we sort the plugins truely alphabetically?

#6 @leftjustified
19 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

that's some good thinking!

Note: See TracTickets for help on using tickets.