| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | if ( ! class_exists( 'WP_List_Table' ) ) { |
| 9 | 13 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; |
| 10 | 14 | } |
| 11 | 15 | |
| @@ -117,9 +121,9 @@ | ||
| 117 | 121 | |
| 118 | 122 | switch_to_blog( $item->blog_id ); |
| 119 | 123 | |
| 120 | 124 | // Checks for both the stock version of Jetpack and the one managed by the Jetpack Beta Plugin. |
| 121 | - if ( ! is_plugin_active( 'jetpack/jetpack.php' ) && ! is_plugin_active( 'jetpack-dev/jetpack.php' ) ) { | |
| 125 | + if ( ! is_plugin_active( 'jetpack/jetpack.php' ) && ! is_plugin_active( 'jetpack-dev/jetpack.php' ) && ! array_key_exists( 'jetpack.php', get_mu_plugins() ) ) { | |
| 122 | 126 | $title = __( 'Jetpack is not active on this site.', 'jetpack' ); |
| 123 | 127 | $action = array( |
| 124 | 128 | 'manage-plugins' => '<a href="' . get_admin_url( $item->blog_id, 'plugins.php', 'admin' ) . '">' . __( 'Manage Plugins', 'jetpack' ) . '</a>', |
| 125 | 129 | ); |
| @@ -181,9 +185,8 @@ | ||
| 181 | 185 | /** |
| 182 | 186 | * Process bulk actions. |
| 183 | 187 | */ |
| 184 | 188 | public function process_bulk_action() { |
| 185 | - // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Check if we have anything to do before checking the nonce. | |
| 186 | 189 | if ( empty( $_POST['bulk'] ) ) { |
| 187 | 190 | return; // Thou shall not pass! There is nothing to do. |
| 188 | 191 | } |
| 189 | 192 | |