Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r19528 r20525  
    6666                                deactivate_plugins($file, true);
    6767
    68                         update_option('recently_activated', array($file => time()) + (array)get_option('recently_activated'));
     68                        if ( ! is_network_admin() )
     69                                update_option( 'recently_activated', array( $file => time() ) + (array) get_option( 'recently_activated' ) );
    6970
    7071                        wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide));
    … …  
    237238<?php if ( is_writeable($real_file) ) : ?>
    238239        <?php if ( in_array( $file, (array) get_option( 'active_plugins', array() ) ) ) { ?>
    239                 <p><?php _e('<strong>Warning:</strong> Making changes to active plugins is not recommended.  If your changes cause a fatal error, the plugin will be automatically deactivated.'); ?></p>
     240                <p><?php _e('<strong>Warning:</strong> Making changes to active plugins is not recommended. If your changes cause a fatal error, the plugin will be automatically deactivated.'); ?></p>
    240241        <?php } ?>
    241242        <p class="submit">
Note: See TracChangeset for help on using the changeset viewer.