From 32c90a68838490310a8547da94c353073e00d779 Mon Sep 17 00:00:00 2001 From: dd32 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: http://svn.automattic.com/wordpress/trunk@13859 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9b8137c82..084b59912 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; }