Changeset 5345
- Timestamp:
- 04/29/2007 09:00:54 PM (17 years ago)
- Files:
-
- 2 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 } -
trunk/wp-admin/upgrade-functions.php
r5344 r5345 1117 1117 $plugins = __get_option( 'active_plugins' ); 1118 1118 1119 if ( in_array( 'widgets/widgets.php', $plugins ) ) { 1120 array_splice( $plugins, array_search( 'widgets/widgets.php', $plugins ), 1 ); 1121 update_option( 'active_plugins', $plugins ); 1119 foreach ( $plugins as $plugin ) { 1120 if ( basename( $plugin ) == 'widgets.php' ) { 1121 array_splice( $plugins, array_search( $plugin, $plugins ), 1 ); 1122 update_option( 'active_plugins', $plugins ); 1123 break; 1124 } 1122 1125 } 1123 1126 }
Note: See TracChangeset
for help on using the changeset viewer.