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:
parent
7d59187e7a
commit
41ab29d8ec
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user