Show network only plugins for !is_multisite. Fixes #15666
git-svn-id: http://svn.automattic.com/wordpress/trunk@16709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ef90a47ff8
commit
70ab4e218f
|
@ -372,9 +372,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
if ( $is_active ) {
|
if ( $is_active ) {
|
||||||
$actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . __('Deactivate this plugin') . '">' . __('Deactivate') . '</a>';
|
$actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . __('Deactivate this plugin') . '">' . __('Deactivate') . '</a>';
|
||||||
} else {
|
} else {
|
||||||
if ( is_network_only_plugin( $plugin_file ) && !$screen->is_network )
|
|
||||||
return;
|
|
||||||
|
|
||||||
$actions['activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>';
|
$actions['activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>';
|
||||||
|
|
||||||
if ( ! is_multisite() && current_user_can('delete_plugins') )
|
if ( ! is_multisite() && current_user_can('delete_plugins') )
|
||||||
|
|
Loading…
Reference in New Issue