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:
parent
928cb8e0a5
commit
11f5bb3f58
|
@ -110,10 +110,12 @@ 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');
|
||||||
|
if ( is_array($current_plugins) ) {
|
||||||
foreach ($current_plugins as $plugin) {
|
foreach ($current_plugins as $plugin) {
|
||||||
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
||||||
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
|
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
|
if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
|
||||||
|
|
Loading…
Reference in New Issue