From 38298f9d8848456a7bc5f4d6a6c7fbc24d3d95c0 Mon Sep 17 00:00:00 2001 From: Pete Mall Date: Thu, 16 Dec 2010 03:09:06 +0000 Subject: [PATCH] Use net admin plugin-install in site admin tools. Fixes #15839 git-svn-id: https://develop.svn.wordpress.org/trunk@16976 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/import.php b/wp-admin/import.php index 0e1e325af4..07616a82c3 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -44,6 +44,7 @@ if ( ! empty( $_GET['invalid'] ) && !empty($popular_importers[$_GET['invalid']][ add_thickbox(); require_once ('admin-header.php'); $parent_file = 'tools.php'; +$href = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' ); ?>
@@ -108,8 +109,8 @@ if (empty ($importers)) { } } if ( empty($action) ) - $action = '' . $data[0] . ''; } else { $action = "{$data[0]}"; @@ -130,7 +131,7 @@ if (empty ($importers)) { } if ( current_user_can('install_plugins') ) - echo '

' . sprintf( __('If the importer you need is not listed, search the plugins directory to see if an importer is available.'), esc_url(admin_url('plugin-install.php?tab=search&type=tag&s=importer')) ) . '

'; + echo '

' . sprintf( __('If the importer you need is not listed, search the plugins directory to see if an importer is available.'), esc_url( $href . '?tab=search&type=tag&s=importer' ) ) . '

'; ?>