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

git-svn-id: http://svn.automattic.com/wordpress/trunk@2501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-03-31 04:04:14 +00:00
parent 928cb8e0a5
commit 11f5bb3f58
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') ) { if ( get_settings('active_plugins') ) {
$current_plugins = get_settings('active_plugins'); $current_plugins = get_settings('active_plugins');
foreach ($current_plugins as $plugin) { if ( is_array($current_plugins) ) {
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin)) foreach ($current_plugins as $plugin) {
include_once(ABSPATH . 'wp-content/plugins/' . $plugin); if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
}
} }
} }