Make WordPress Core

Ticket #17833: plugin-auto-update-messages.patch

File plugin-auto-update-messages.patch, 2.2 KB (added by toppa, 13 years ago)
  • wp-admin/includes/class-wp-upgrader.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    374374                $this->strings['no_package'] = __('Update package not available.');
    375375                $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;');
    376376                $this->strings['unpack_package'] = __('Unpacking the update&#8230;');
    377                 $this->strings['deactivate_plugin'] = __('Deactivating the plugin&#8230;');
    378377                $this->strings['remove_old'] = __('Removing the old version of the plugin&#8230;');
    379378                $this->strings['remove_old_failed'] = __('Could not remove the old plugin.');
    380379                $this->strings['process_failed'] = __('Plugin update failed.');
     
    594593                        return new WP_Error('bad_request', $this->strings['bad_request']);
    595594
    596595                if ( is_plugin_active($plugin) ) {
    597                         $this->skin->feedback('deactivate_plugin');
    598596                        //Deactivate the plugin silently, Prevent deactivation hooks from running.
    599597                        deactivate_plugins($plugin, true);
    600598                }
     
    11061104        function after() {
    11071105                $this->plugin = $this->upgrader->plugin_info();
    11081106                if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){
    1109                         show_message(__('Reactivating the plugin&#8230;'));
    11101107                        echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . $this->plugin, 'activate-plugin_' . $this->plugin) .'"></iframe>';
    11111108                }
    11121109
  • wp-admin/update.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    7676                        die();
    7777                }
    7878                iframe_header( __('Plugin Reactivation'), true );
    79                 if ( isset($_GET['success']) )
    80                         echo '<p>' . __('Plugin reactivated successfully.') . '</p>';
    81 
    8279                if ( isset($_GET['failure']) ){
    8380                        echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
    8481