Make WordPress Core


Ignore:
Timestamp:
04/29/2007 09:00:54 PM (19 years ago)
Author:
rob1n
Message:

Check basename(). see #4169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/upgrade-functions.php

    r5344 r5345  
    11051105        $plugins = __get_option( 'active_plugins' );
    11061106       
    1107         if ( in_array( 'widgets/widgets.php', $plugins ) ) {
    1108                 array_splice( $plugins, array_search( 'widgets/widgets.php', $plugins ), 1 );
    1109                 update_option( 'active_plugins', $plugins );
     1107        foreach ( $plugins as $plugin ) {
     1108                if ( basename( $plugin ) == 'widgets.php' ) {
     1109                        array_splice( $plugins, array_search( $plugin, $plugins ), 1 );
     1110                        update_option( 'active_plugins', $plugins );
     1111                        break;
     1112                }
    11101113        }
    11111114}
Note: See TracChangeset for help on using the changeset viewer.