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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-07 21:06:44 +00:00
parent 46cd784f3c
commit bc39153b2e
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