WordPress.org

Make WordPress Core

Ticket #5395: 5395.patch

File 5395.patch, 507 bytes (added by Viper007Bond, 10 years ago)
  • wp-admin/includes/import.php

     
    22
    33function get_importers() {
    44        global $wp_importers;
    5         uasort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
     5        if ( is_array($wp_importers) )
     6                uasort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    67        return $wp_importers;
    78}
    89