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
This commit is contained in:
parent
a0d734beea
commit
32c90a6883
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue