mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user