From 33ad189d789356d4482c3b98f78e820f34126f75 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 30 Jul 2008 06:48:30 +0000 Subject: [PATCH] Make the validate_file check more explict and obvious. git-svn-id: http://svn.automattic.com/wordpress/trunk@8501 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index b1d7cd6a2..588ffc217 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -421,7 +421,7 @@ if ( get_option('active_plugins') ) { $current_plugins = get_option('active_plugins'); if ( is_array($current_plugins) ) { foreach ($current_plugins as $plugin) { - if ( '' != $plugin && ! validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) + if ( '' != $plugin && 0 == validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) include_once(WP_PLUGIN_DIR . '/' . $plugin); } }