Make WordPress Core


Ignore:
Timestamp:
03/28/2010 03:28:52 AM (15 years ago)
Author:
dd32
Message:

Mark auto-deactivated plugins as recently active after the Plugin Editor deactivates them. Fixes #10925

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r13191 r13859  
    5757            if ( is_plugin_active($file) )
    5858                deactivate_plugins($file, true);
     59
     60            update_option('recently_activated', array($file => time()) + (array)get_option('recently_activated'));
     61
    5962            wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto"));
    6063            exit;
Note: See TracChangeset for help on using the changeset viewer.