diff --git wp-admin/includes/class-wp-plugins-list-table.php wp-admin/includes/class-wp-plugins-list-table.php
index 24deb0b..0c357af 100644
|
|
class WP_Plugins_List_Table extends WP_List_Table { |
86 | 86 | // Filter into individual sections |
87 | 87 | if ( is_multisite() && is_network_only_plugin( $plugin_file ) && !$screen->is_network ) { |
88 | 88 | unset( $plugins['all'][ $plugin_file] ); |
89 | | } elseif ( is_plugin_active_for_network($plugin_file) && !$screen->is_network ) { |
90 | | unset( $plugins['all'][ $plugin_file ] ); |
91 | 89 | } elseif ( is_multisite() && is_network_only_plugin( $plugin_file ) && !current_user_can( 'manage_network_plugins' ) ) { |
92 | 90 | $plugins['network'][ $plugin_file ] = $plugin_data; |
93 | 91 | } elseif ( ( !$screen->is_network && is_plugin_active( $plugin_file ) ) |
… |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
353 | 351 | else |
354 | 352 | $is_active = is_plugin_active( $plugin_file ); |
355 | 353 | |
356 | | if ( $is_active_for_network && !is_super_admin() && !$screen->is_network ) |
357 | | return; |
358 | | |
359 | 354 | if ( $screen->is_network ) { |
360 | 355 | if ( $is_active_for_network ) { |
361 | 356 | if ( current_user_can( 'manage_network_plugins' ) ) |
… |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
367 | 362 | $actions['delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins') . '" title="' . esc_attr__('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>'; |
368 | 363 | } |
369 | 364 | } else { |
370 | | if ( $is_active ) { |
| 365 | if ( $is_active_for_network ) { |
| 366 | $actions['network_active'] = 'Network Active'; |
| 367 | } elseif ( $is_active ) { |
371 | 368 | $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="' . esc_attr__('Deactivate this plugin') . '">' . __('Deactivate') . '</a>'; |
372 | 369 | } else { |
373 | 370 | $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="' . esc_attr__('Activate this plugin') . '" class="edit">' . __('Activate') . '</a>'; |
… |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
387 | 384 | |
388 | 385 | $class = $is_active ? 'active' : 'inactive'; |
389 | 386 | $checkbox_id = "checkbox_" . md5($plugin_data['Name']); |
390 | | $checkbox = in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $plugin_data['Name'] . "</label>"; |
| 387 | |
| 388 | if ( ! $screen->is_network && isset( $is_active_for_network ) && $is_active_for_network ) |
| 389 | $checkbox = ''; |
| 390 | else |
| 391 | $checkbox = in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $plugin_data['Name'] . "</label>"; |
| 392 | |
391 | 393 | if ( 'dropins' != $context ) { |
392 | 394 | $description = '<p>' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '</p>'; |
393 | 395 | $plugin_name = $plugin_data['Name']; |