diff --git wp-admin/includes/class-wp-plugins-list-table.php wp-admin/includes/class-wp-plugins-list-table.php
index 136fbd4..5a08fd8 100644
|
|
class WP_Plugins_List_Table extends WP_List_Table { |
602 | 602 | if ( current_user_can( 'manage_network_plugins' ) ) { |
603 | 603 | /* translators: %s: plugin name */ |
604 | 604 | $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 ) . '" aria-label="' . esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>'; |
605 | | } |
| 605 | } |
606 | 606 | } else { |
607 | 607 | if ( current_user_can( 'manage_network_plugins' ) ) { |
608 | 608 | /* translators: %s: plugin name */ |
… |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
615 | 615 | } |
616 | 616 | } else { |
617 | 617 | if ( $restrict_network_active ) { |
618 | | $actions = array( |
619 | | 'network_active' => __( 'Network Active' ), |
620 | | ); |
| 618 | if ( current_user_can( 'manage_network_plugins' ) ) { |
| 619 | /* translators: %s: plugin name */ |
| 620 | $actions['network_deactivate'] = '<a href="' . wp_nonce_url( network_home_url( 'wp-admin/network/plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s ) , 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>'; |
| 621 | } else { |
| 622 | $actions = array( |
| 623 | 'network_active' => __( 'Network Active' ), |
| 624 | ); |
| 625 | } |
621 | 626 | } elseif ( $restrict_network_only ) { |
622 | | $actions = array( |
623 | | 'network_only' => __( 'Network Only' ), |
624 | | ); |
| 627 | if ( current_user_can( 'manage_network_plugins' ) ) { |
| 628 | /* translators: %s: plugin name */ |
| 629 | $actions['network_activate'] = '<a href="' . wp_nonce_url( network_home_url( 'wp-admin/network/plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s ), 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>'; |
| 630 | } else { |
| 631 | $actions = array( |
| 632 | 'network_only' => __( 'Network Only' ), |
| 633 | ); |
| 634 | } |
625 | 635 | } elseif ( $is_active ) { |
626 | 636 | /* translators: %s: plugin name */ |
627 | 637 | $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 ) . '" aria-label="' . esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Deactivate' ) . '</a>'; |
628 | 638 | } else { |
629 | 639 | /* translators: %s: plugin name */ |
630 | 640 | $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 ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Activate' ) . '</a>'; |
631 | | |
| 641 | |
| 642 | if ( current_user_can( 'manage_network_plugins' ) ) { |
| 643 | /* translators: %s: plugin name */ |
| 644 | $actions['network_activate'] = '<a href="' . wp_nonce_url( network_home_url( 'wp-admin/network/plugins.php?action=activate&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s ), 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>'; |
| 645 | |
| 646 | /* translators: %s: plugin name */ |
| 647 | $actions['network_delete'] = '<a href="' . wp_nonce_url( network_home_url( 'wp-admin/network/plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s ), 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>'; |
| 648 | } |
| 649 | |
632 | 650 | if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { |
633 | 651 | /* translators: %s: plugin name */ |
634 | 652 | $actions['delete'] = '<a href="' . wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ) . '" class="delete" aria-label="' . esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Delete' ) . '</a>'; |