From 5eb178ac14ac783f0371191efb3887d9fa60389b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 9 Jun 2010 20:33:16 +0000 Subject: [PATCH] Sort only when importers exist. Props aaroncampbell. fixes #13806 git-svn-id: https://develop.svn.wordpress.org/trunk@15181 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-admin/import.php b/wp-admin/import.php index eacc596755..71f3c47dba 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -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 '

'.__('No importers are available.').'

'; // TODO: make more helpful } else { + uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);')); ?> @@ -140,4 +139,3 @@ if ( current_user_can('install_plugins') ) include ('admin-footer.php'); ?> -