From 9998836363a141ed8b8edadc6f7c1c74685e81eb Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 7 Dec 2010 21:14:44 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-plugins-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 55c0ffed5f..fe2a3b4518 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -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'] = '' . __('Edit') . ''; } // end if $context