Make WordPress Core

Ticket #1709: plugin_missing_bug.patch

File plugin_missing_bug.patch, 580 bytes (added by michaelmoore, 20 years ago)

Possible fix for improper plugin removal

  • plugins.php

    old new  
    4040// If a plugin file does not exist, remove it from the list of active
    4141// plugins.     
    4242foreach ($check_plugins as $check_plugin) {
    4343       if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) {
    4444                       $current = get_settings('active_plugins');
    45                        unset($current[$_GET['plugin']]);
     45                       unset($current[$check_plugin]);
    4646                       update_option('active_plugins', $current);
    4747       }
    4848}