Ticket #5395 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Warning when the wp-admin/import/ is empty

Reported by: drhallows Assigned to: anonymous
Priority: lowest Milestone: 2.5
Component: Administration Version: 2.3.1
Severity: minor Keywords: has-patch commit
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

5395.patch (507 bytes) - added by Viper007Bond on 11/28/07 00:36:21.

Change History

11/28/07 00:36:11 changed by Viper007Bond

  • keywords set to has-patch.

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.

11/28/07 00:36:21 changed by Viper007Bond

  • attachment 5395.patch added.

11/28/07 01:03:27 changed by lloydbudd

  • milestone changed from 2.3.2 to 2.4.

12/16/07 21:33:19 changed by darkdragon

  • keywords changed from has-patch to has-patch commit.

12/19/07 17:48:51 changed by ryan

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

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

12/19/07 17:56:13 changed by drhallows

Tested and working. Thanks you very much :)