Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395
git-svn-id: https://develop.svn.wordpress.org/trunk@6411 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8966b24e0b
commit
96ee1a9982
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
function get_importers() {
|
function get_importers() {
|
||||||
global $wp_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;
|
return $wp_importers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user