Use PLUGINDIR. Props z720 and Nazgul. fixes #3909
git-svn-id: http://svn.automattic.com/wordpress/trunk@4972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
34928e6ef0
commit
83112722cd
|
@ -116,7 +116,7 @@ if (empty($plugins)) {
|
||||||
|
|
||||||
if ( $style != '' )
|
if ( $style != '' )
|
||||||
$style = 'class="' . $style . '"';
|
$style = 'class="' . $style . '"';
|
||||||
if ( is_writable(ABSPATH . 'wp-content/plugins/' . $plugin_file) )
|
if ( is_writable(ABSPATH . PLUGINDIR . '/' . $plugin_file) )
|
||||||
$edit = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>";
|
$edit = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>";
|
||||||
else
|
else
|
||||||
$edit = '';
|
$edit = '';
|
||||||
|
|
|
@ -201,8 +201,8 @@ if ( get_option('active_plugins') ) {
|
||||||
$current_plugins = get_option('active_plugins');
|
$current_plugins = get_option('active_plugins');
|
||||||
if ( is_array($current_plugins) ) {
|
if ( is_array($current_plugins) ) {
|
||||||
foreach ($current_plugins as $plugin) {
|
foreach ($current_plugins as $plugin) {
|
||||||
if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
if ('' != $plugin && file_exists(ABSPATH . PLUGINDIR . '/' . $plugin))
|
||||||
include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
|
include_once(ABSPATH . PLUGINDIR . '/' . $plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue