mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Use PLUGINDIR. Props z720 and Nazgul. fixes #3909
git-svn-id: https://develop.svn.wordpress.org/trunk@4972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -201,8 +201,8 @@ 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(ABSPATH . 'wp-content/plugins/' . $plugin))
|
||||
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
|
||||
if ('' != $plugin && file_exists(ABSPATH . PLUGINDIR . '/' . $plugin))
|
||||
include_once(ABSPATH . PLUGINDIR . '/' . $plugin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user