Sort only when importers exist. Props aaroncampbell. fixes #13806
git-svn-id: https://develop.svn.wordpress.org/trunk@15181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
537fcf4970
commit
5eb178ac14
@ -83,11 +83,10 @@ foreach ( $popular_importers as $pop_importer => $pop_data ) {
|
||||
$importers[$pop_importer] = $popular_importers[$pop_importer];
|
||||
}
|
||||
|
||||
uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
|
||||
|
||||
if (empty ($importers)) {
|
||||
echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful
|
||||
} else {
|
||||
uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
|
||||
?>
|
||||
<table class="widefat" cellspacing="0">
|
||||
|
||||
@ -140,4 +139,3 @@ if ( current_user_can('install_plugins') )
|
||||
|
||||
include ('admin-footer.php');
|
||||
?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user