From 707ab6c656aed8c3e3700aad8cf34b64b958bcfe Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Thu, 11 Aug 2011 20:49:47 +0000 Subject: [PATCH] Direct a user to the main site to install importers, fixes #17990 git-svn-id: https://develop.svn.wordpress.org/trunk@18535 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-admin/import.php b/wp-admin/import.php index 0200e56136..f64c5b7011 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -113,10 +113,16 @@ if (empty ($importers)) { '"title="' . esc_attr__('Activate importer') . '"">' . $data[0] . ''; } } - if ( empty($action) ) - $action = '' . $data[0] . ''; + } else { + $action = $data[0]; + $data[1] = sprintf( __( 'This importer is not installed. Please install importers from the main site.' ), get_admin_url( $current_site->blog_id, 'import.php' ) ); + } + } } else { $action = "{$data[0]}"; }