diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 25d320fb84..4c6e11dee5 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -116,7 +116,7 @@ if (empty($plugins)) { if ( $style != '' ) $style = 'class="' . $style . '"'; - if ( is_writable(ABSPATH . 'wp-content/plugins/' . $plugin_file) ) + if ( is_writable(ABSPATH . PLUGINDIR . '/' . $plugin_file) ) $edit = "".__('Edit').""; else $edit = ''; diff --git a/wp-settings.php b/wp-settings.php index e5ebd41dde..44b0fd0f17 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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); } } }