WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13806 closed defect (bug) (fixed)

Only sort importers if some exist

Reported by: aaroncampbell Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch needs-testing
Focuses: Cc:

Description

Currently if you have no importers you get a warning:
Warning: uasort() [function.uasort]: The argument should be an array in /path/to/wp-admin/import.php on line 86

Right after we sort we check if $importer is empty, so I'm just moving the sort to happen only if importers exist.

Attachments (1)

13806.001.diff (659 bytes) - added by aaroncampbell 5 years ago.

Download all attachments as: .zip

Change History (2)

@aaroncampbell5 years ago

comment:1 @ryan5 years ago

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

(In [15181]) Sort only when importers exist. Props aaroncampbell. fixes #13806

Note: See TracTickets for help on using tickets.