WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/30/2010 07:02:14 PM (9 years ago)
Author:
ryan
Message:

Don't deactivate a plugin that is both network activated and activated on the main site after editing. Props SergeyBiryukov. fixes #16011

File:
1 edited

Legend:

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

    r17114 r17183  
    9090            wp_die( $error );
    9191
    92         if ( ! is_plugin_active($file) )
     92        if ( ( ! empty( $_GET['networkwide'] ) && ! is_plugin_active_for_network($file) ) || ! is_plugin_active($file) )
    9393            activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error
    9494
Note: See TracChangeset for help on using the changeset viewer.