Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#5395 closed defect (bug) (fixed)

Warning when the wp-admin/import/ is empty

Reported by: drhallows's profile drhallows Owned by:
Milestone: 2.5 Priority: lowest
Severity: minor Version: 2.3.1
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

Well i delete all files in the import folder (security reasons) and when i go to manage/import i see this warning.

Warning: uasort() [function.uasort]: The argument should be an array in /var/www/wp-admin/includes/import.php on line 5

Is normal?

Attachments (1)

5395.patch (507 bytes) - added by Viper007Bond 16 years ago.

Download all attachments as: .zip

Change History (6)

#1 @Viper007Bond
16 years ago

  • Keywords has-patch added

Security reasons? The files can't be used directly -- they are WordPress dependent. And if there is security risk, wouldn't it be better to just fix it?

But anyway...

No, that error shouldn't happen. I've made a patch.

@Viper007Bond
16 years ago

#2 @lloydbudd
16 years ago

  • Milestone changed from 2.3.2 to 2.4

#3 @darkdragon
16 years ago

  • Keywords commit added

#4 @ryan
16 years ago

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

(In [6411]) Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395

#5 @drhallows
16 years ago

Tested and working. Thanks you very much :)

Note: See TracTickets for help on using tickets.