Don't show plugin edit link in the site admin. fixes #15722. fixes logic in [16777].

git-svn-id: https://develop.svn.wordpress.org/trunk@16778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-07 21:14:44 +00:00
parent 35d7a02cba
commit 137601189d
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
} // end if $is_active
} // end if $screen->is_network
if ( $screen->is_network && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
if ( ( ! is_multisite() || $screen->is_network ) && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
$actions['edit'] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>';
} // end if $context