mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Include only valid plugins. Props guillep2k, fixes #6871
git-svn-id: https://develop.svn.wordpress.org/trunk@8495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-1
@@ -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 && file_exists(WP_PLUGIN_DIR . '/' . $plugin))
|
||||
if ( '' != $plugin && ! validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
|
||||
include_once(WP_PLUGIN_DIR . '/' . $plugin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user