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

git-svn-id: https://develop.svn.wordpress.org/trunk@17183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-30 19:02:14 +00:00
parent 97c77ba912
commit ebabd43ec6
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ default:
if ( is_wp_error($error) )
wp_die( $error );
if ( ! is_plugin_active($file) )
if ( ( ! empty( $_GET['networkwide'] ) && ! is_plugin_active_for_network($file) ) || ! is_plugin_active($file) )
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
wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );