WordPress.org

Make WordPress Core

Changeset 16976


Ignore:
Timestamp:
12/16/10 03:09:06 (4 years ago)
Author:
PeteMall
Message:

Use net admin plugin-install in site admin tools. Fixes #15839

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import.php

    r16340 r16976  
    4545require_once ('admin-header.php'); 
    4646$parent_file = 'tools.php'; 
     47$href = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' ); 
    4748?> 
    4849 
     
    109110            } 
    110111            if ( empty($action) ) 
    111                 $action = '<a href="' . esc_url(admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . 
    112                                         '&from=import&TB_iframe=true&width=600&height=550')) . '" class="thickbox" title="' . 
     112                $action = '<a href="' . esc_url( $href . '?tab=plugin-information&plugin=' . $plugin_slug . 
     113                                        '&from=import&TB_iframe=true&width=600&height=550' ) . '" class="thickbox" title="' . 
    113114                                        esc_attr__('Install importer') . '">' . $data[0] . '</a>'; 
    114115        } else { 
     
    131132 
    132133if ( current_user_can('install_plugins') ) 
    133     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>'; 
     134    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>'; 
    134135?> 
    135136 
Note: See TracChangeset for help on using the changeset viewer.