From e47306254c39d2e7312ff7d51e6879d75f27297f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 Jun 2010 20:33:16 +0000 Subject: [PATCH] Sort only when importers exist. Props aaroncampbell. fixes #13806 git-svn-id: http://svn.automattic.com/wordpress/trunk@15181 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 eacc59675..71f3c47db 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'); ?> -