WordPress.org

Make WordPress Core

Changeset 6411


Ignore:
Timestamp:
12/19/07 17:48:51 (6 years ago)
Author:
ryan
Message:

Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/import.php

    r6125 r6411  
    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} 
Note: See TracChangeset for help on using the changeset viewer.