mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 23:34:30 +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:
@@ -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 = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>";
|
||||
else
|
||||
$edit = '';
|
||||
|
||||
Reference in New Issue
Block a user