From 137601189dc4f91300cc624ab7f36debc60570d4 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@16778 602fd350-edb4-49c9-b593-d223f7449a82 --- 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