From 724ae803d8211316383e7c3f934a81edbdf7b3ab Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 28 Mar 2010 03:28:52 +0000 Subject: [PATCH] Mark auto-deactivated plugins as recently active after the Plugin Editor deactivates them. Fixes #10925 git-svn-id: https://develop.svn.wordpress.org/trunk@13859 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/plugin-editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 9b8137c82d..084b599121 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -56,6 +56,9 @@ case 'update': if ( is_plugin_active($file) || isset($_POST['phperror']) ) { if ( is_plugin_active($file) ) deactivate_plugins($file, true); + + update_option('recently_activated', array($file => time()) + (array)get_option('recently_activated')); + wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto")); exit; }