Changeset 9141 for trunk/wp-admin/update.php
- Timestamp:
- 10/13/2008 11:39:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/update.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update.php
r9034 r9141 50 50 if ( is_wp_error($result) ) { 51 51 show_message($result); 52 show_message( __(' InstallationFailed') );53 } else { 54 //Result is the new plugin file relative to WP_PLUGIN_DIR52 show_message( __('Plugin upgrade Failed') ); 53 } else { 54 $plugin_file = $result; 55 55 show_message( __('Plugin upgraded successfully') ); 56 56 if( $result && $was_activated ){ 57 57 show_message(__('Attempting reactivation of the plugin')); 58 echo '<iframe style="border:0" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&plugin=' . $result, 'activate-plugin_' . $result) .'"></iframe>'; 59 } 58 echo '<iframe style="border:0" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) .'"></iframe>'; 59 } 60 $update_actions = array( 61 'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . attribute_escape(__('Activate this plugin')) . '" target="_parent">' . __('Activate Plugin') . '</a>', 62 'plugins_page' => '<a href="' . admin_url('plugins.php') . '" title="' . attribute_escape(__('Goto plugins page')) . '" target="_parent">' . __('Return to Plugins page') . '</a>' 63 ); 64 if ( $was_activated ) 65 unset( $update_actions['activate_plugin'] ); 66 67 $update_actions = apply_filters('update_plugin_complete_actions', $update_actions, $plugin_file); 68 if ( ! empty($update_actions) ) 69 show_message('<strong>' . __('Actions:') . '</strong>' . implode(' | ', (array)$update_actions)); 60 70 } 61 71 echo '</div>'; … … 208 218 check_admin_referer('upgrade-plugin_' . $plugin); 209 219 $title = __('Upgrade Plugin'); 210 $parent_file = ' plugins.php';220 $parent_file = 'index.php'; 211 221 require_once('admin-header.php'); 212 222 do_plugin_upgrade($plugin); … … 220 230 die(); 221 231 } 222 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 223 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 224 <head> 225 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 226 <title><?php bloginfo('name') ?> › <?php _e('Plugin Reactivation'); ?> — <?php _e('WordPress'); ?></title> 227 <?php 228 wp_admin_css( 'global', true ); 229 wp_admin_css( 'colors', true ); 230 ?> 231 </head> 232 <body> 233 <?php 232 iframe_header( __('Plugin Reactivation'), true ); 234 233 if( isset($_GET['success']) ) 235 234 echo '<p>' . __('Plugin reactivated successfully.') . '</p>'; … … 241 240 include(WP_PLUGIN_DIR . '/' . $plugin); 242 241 } 243 echo "</body></html>";242 iframe_footer(); 244 243 } elseif ( 'upgrade-core' == $action ) { 245 244 $title = __('Upgrade WordPress');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)