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

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