Use net admin plugin-install in site admin tools. Fixes #15839
git-svn-id: http://svn.automattic.com/wordpress/trunk@16976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15249d5c98
commit
ded6118548
|
@ -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' );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
@ -108,8 +109,8 @@ if (empty ($importers)) {
|
|||
}
|
||||
}
|
||||
if ( empty($action) )
|
||||
$action = '<a href="' . esc_url(admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug .
|
||||
'&from=import&TB_iframe=true&width=600&height=550')) . '" class="thickbox" title="' .
|
||||
$action = '<a href="' . esc_url( $href . '?tab=plugin-information&plugin=' . $plugin_slug .
|
||||
'&from=import&TB_iframe=true&width=600&height=550' ) . '" class="thickbox" title="' .
|
||||
esc_attr__('Install importer') . '">' . $data[0] . '</a>';
|
||||
} else {
|
||||
$action = "<a href='" . esc_url("admin.php?import=$id") . "' title='" . esc_attr( wptexturize(strip_tags($data[1])) ) ."'>{$data[0]}</a>";
|
||||
|
@ -130,7 +131,7 @@ if (empty ($importers)) {
|
|||
}
|
||||
|
||||
if ( current_user_can('install_plugins') )
|
||||
echo '<p>' . sprintf( __('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.'), esc_url(admin_url('plugin-install.php?tab=search&type=tag&s=importer')) ) . '</p>';
|
||||
echo '<p>' . sprintf( __('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.'), esc_url( $href . '?tab=search&type=tag&s=importer' ) ) . '</p>';
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue