Changeset 16978 for trunk/wp-admin/import.php
- Timestamp:
- 12/16/2010 06:12:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import.php
r16976 r16978 45 45 require_once ('admin-header.php'); 46 46 $parent_file = 'tools.php'; 47 $href = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' );48 47 ?> 49 48 … … 110 109 } 111 110 if ( empty($action) ) 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="' .111 $action = '<a href="' . esc_url( maybe_network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . 112 '&from=import&TB_iframe=true&width=600&height=550' ) ) . '" class="thickbox" title="' . 114 113 esc_attr__('Install importer') . '">' . $data[0] . '</a>'; 115 114 } else { … … 132 131 133 132 if ( current_user_can('install_plugins') ) 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>';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( maybe_network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '</p>'; 135 134 ?> 136 135
Note: See TracChangeset
for help on using the changeset viewer.