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 Dashboard
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: Security
10 * Feature: Security
11 *
12 * @package automattic/jetpack
13 */
14
15if ( ! defined( 'ABSPATH' ) ) {
16    exit( 0 );
17}
18
19// Activating the module loads this file even while the Jetpack Protect plugin hides it.
20if ( class_exists( \Automattic\Jetpack\Protect\Dashboard::class ) && ! Jetpack_Protect_Dashboard_Feature_Flags::is_protect_plugin_active() ) {
21    \Automattic\Jetpack\Protect\Dashboard::init( array( 'module' => Jetpack_Protect_Dashboard_Feature_Flags::MODULE ) );
22}