Changeset 14985 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/27/2010 11:04:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r14924 r14985 1262 1262 $plugin_file = $this->upgrader->plugin_info(); 1263 1263 1264 $install_actions = array( 1265 'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>', 1266 ); 1264 $install_actions = array(); 1265 1266 $from = isset($_GET['from']) ? stripslashes($_GET['from']) : 'plugins'; 1267 1268 if ( 'import' == $from ) 1269 $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&from=import&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin & Run Importer') . '</a>'; 1270 else 1271 $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>'; 1267 1272 1268 1273 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) 1269 1274 $install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&networkwide=1&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>'; 1270 1275 1271 if ( $this->type == 'web' ) 1276 if ( 'import' == $from ) 1277 $install_actions['importers_page'] = '<a href="' . admin_url('import.php') . '" title="' . esc_attr__('Return to Importers') . '" target="_parent">' . __('Return to Importers') . '</a>'; 1278 else if ( $this->type == 'web' ) 1272 1279 $install_actions['plugins_page'] = '<a href="' . admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>'; 1273 1280 else
Note: See TracChangeset
for help on using the changeset viewer.