Index: src/wp-admin/includes/plugin.php
===================================================================
--- src/wp-admin/includes/plugin.php	(revision 32500)
+++ src/wp-admin/includes/plugin.php	(working copy)
@@ -564,33 +564,35 @@ function activate_plugin( $plugin, $redi
 			 * {@see register_activation_hook()}. The dynamic portion of the
 			 * hook name, `$plugin`, refers to the plugin basename.
 			 *
 			 * If a plugin is silently activated (such as during an update),
 			 * this hook does not fire.
 			 *
 			 * @since 2.0.0
 			 *
 			 * @param bool $network_wide Whether to enable the plugin for all sites in the network
 			 *                           or just the current site. Multisite only. Default is false.
 			 */
 			do_action( 'activate_' . $plugin, $network_wide );
 		}
 
 		if ( $network_wide ) {
+			$current = get_site_option( 'active_sitewide_plugins', array() );
 			$current[$plugin] = time();
 			update_site_option( 'active_sitewide_plugins', $current );
 		} else {
+			$current = get_option( 'active_plugins', array() );
 			$current[] = $plugin;
 			sort($current);
 			update_option('active_plugins', $current);
 		}
 
 		if ( ! $silent ) {
 			/**
 			 * Fires after a plugin has been activated.
 			 *
 			 * If a plugin is silently activated (such as during an update),
 			 * this hook does not fire.
 			 *
 			 * @since 2.9.0
 			 *
 			 * @param string $plugin       Plugin path to main plugin file with plugin data.
