Make WordPress Core


Ignore:
Timestamp:
09/11/2012 02:12:34 AM (12 years ago)
Author:
nacin
Message:

Use the key we found using array_search() to unset it from the array. props hakre. fixes #16562.

File:
1 edited

Legend:

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

    r21664 r21812  
    607607            if ( false !== $key ) {
    608608                $do_blog = true;
    609                 array_splice( $current, $key, 1 );
     609                unset( $current[ $key ] );
    610610            }
    611611        }
Note: See TracChangeset for help on using the changeset viewer.