Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
75.00% covered (warning)
75.00%
3 / 4
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Module Name: Protect
4 * Module Description: Security tools that keep your site safe and sound, from posts to plugins.
5 * Sort Order: 4
6 * First Introduced: 16.4-a.4
7 * Requires Connection: Yes
8 * Auto Activate: Yes
9 * Module Tags: Recommended
10 * Feature: Security
11 * Additional Search Queries: protect dashboard, security, scan, firewall
12 *
13 * @package automattic/jetpack
14 */
15
16if ( ! defined( 'ABSPATH' ) ) {
17    exit( 0 );
18}
19
20// Activating the module loads this file even while the Jetpack Protect plugin hides it.
21if ( class_exists( \Automattic\Jetpack\Protect\Dashboard::class ) && ! Jetpack_Protect_Dashboard_Feature_Flags::is_protect_plugin_active() ) {
22    \Automattic\Jetpack\Protect\Dashboard::init( array( 'module' => Jetpack_Protect_Dashboard_Feature_Flags::MODULE ) );
23}