Changeset 5345 for branches/2.2/wp-admin/upgrade-functions.php
- Timestamp:
- 04/29/2007 09:00:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/upgrade-functions.php
r5344 r5345 1105 1105 $plugins = __get_option( 'active_plugins' ); 1106 1106 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 } 1110 1113 } 1111 1114 }
Note: See TracChangeset
for help on using the changeset viewer.