Don't show plugin edit link in the site admin. fixes #15722.

git-svn-id: https://develop.svn.wordpress.org/trunk@16777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-07 21:06:44 +00:00
parent ab5f09cfda
commit 35d7a02cba
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 ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
if ( $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