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
This commit is contained in:
Dion Hulse 2010-03-28 03:28:52 +00:00
parent 6f02bf815c
commit 724ae803d8
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}