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

git-svn-id: https://develop.svn.wordpress.org/trunk@2501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-03-31 04:04:14 +00:00
parent 7d59187e7a
commit 41ab29d8ec
1 changed files with 5 additions and 3 deletions

View File

@ -110,9 +110,11 @@ if (get_settings('hack_file')) {
if ( get_settings('active_plugins') ) {
$current_plugins = get_settings('active_plugins');
foreach ($current_plugins as $plugin) {
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
if ( is_array($current_plugins) ) {
foreach ($current_plugins as $plugin) {
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
}
}
}