Cast to array to avoid warning.

git-svn-id: https://develop.svn.wordpress.org/trunk@5432 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-05-10 16:32:11 +00:00
parent 9f439b9e40
commit 31e7b5be08

View File

@ -1124,7 +1124,7 @@ function wp_check_mysql_version() {
function maybe_disable_automattic_widgets() {
$plugins = __get_option( 'active_plugins' );
foreach ( $plugins as $plugin ) {
foreach ( (array) $plugins as $plugin ) {
if ( basename( $plugin ) == 'widgets.php' ) {
array_splice( $plugins, array_search( $plugin, $plugins ), 1 );
update_option( 'active_plugins', $plugins );