WordPress.org

Make WordPress Core

Changeset 2501


Ignore:
Timestamp:
03/31/2005 04:04:14 AM (17 years ago)
Author:
ryan
Message:

Add a precautionary is_array() check around the plugin loading loop. http://mosquito.wordpress.org/view.php?id=1015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r2486 r2501  
    111111if ( get_settings('active_plugins') ) {
    112112    $current_plugins = get_settings('active_plugins');
    113     foreach ($current_plugins as $plugin) {
    114         if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
    115             include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
     113    if ( is_array($current_plugins) ) {
     114        foreach ($current_plugins as $plugin) {
     115            if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
     116                include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
     117        }
    116118    }
    117119}
Note: See TracChangeset for help on using the changeset viewer.