Make WordPress Core


Ignore:
Timestamp:
05/10/2007 04:31:49 PM (19 years ago)
Author:
ryan
Message:

Cast to array to avoid warning.

File:
1 edited

Legend:

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

    r5394 r5431  
    11131113    $plugins = __get_option( 'active_plugins' );
    11141114   
    1115     foreach ( $plugins as $plugin ) {
     1115    foreach ( (array) $plugins as $plugin ) {
    11161116        if ( basename( $plugin ) == 'widgets.php' ) {
    11171117            array_splice( $plugins, array_search( $plugin, $plugins ), 1 );
Note: See TracChangeset for help on using the changeset viewer.