WordPress.org

Make WordPress Core

Ticket #16011: 16011.patch

File 16011.patch, 662 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-admin/plugin-editor.php

     
    8989                if ( is_wp_error($error) )
    9090                        wp_die( $error );
    9191
    92                 if ( ! is_plugin_active($file) )
     92                if ( ! is_plugin_active($file) || ! is_plugin_active_for_network($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
    9595                wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );