Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395
git-svn-id: http://svn.automattic.com/wordpress/trunk@6411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40300b4632
commit
e0301f76ea
|
@ -2,7 +2,8 @@
|
|||
|
||||
function get_importers() {
|
||||
global $wp_importers;
|
||||
uasort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
|
||||
if ( is_array($wp_importers) )
|
||||
uasort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
|
||||
return $wp_importers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue