WordPress.org

Make WordPress Core

Changeset 7416


Ignore:
Timestamp:
03/20/2008 05:24:44 PM (10 years ago)
Author:
ryan
Message:

deactivate_plugins() fix from DD32. fixes #6309

File:
1 edited

Legend:

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

    r6580 r7416  
    117117
    118118    foreach ( $plugins as $plugin ) {
    119         array_splice($current, array_search( $plugin, $current), 1 ); // Array-fu!
     119        $item = array_search( $plugin, $current);
     120        if( false === $item)
     121            continue;
     122        array_splice($current, $item, 1 ); // Array-fu!
    120123        do_action('deactivate_' . trim( $plugin ));
    121124    }
Note: See TracChangeset for help on using the changeset viewer.