Changeset 16976
- Timestamp:
- 12/16/2010 03:09:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import.php
r16340 r16976 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' ); 47 48 ?> 48 49 … … 109 110 } 110 111 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="' . 113 114 esc_attr__('Install importer') . '">' . $data[0] . '</a>'; 114 115 } else { … … 131 132 132 133 if ( 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>'; 134 135 ?> 135 136
Note: See TracChangeset
for help on using the changeset viewer.