updated plugin Jetpack Protect
version 1.4.0
This commit is contained in:
@ -27,6 +27,7 @@ use Automattic\Jetpack\Sync\Main as Sync_Main;
|
||||
use Automattic\Jetpack\VideoPress\Initializer as VideoPress_Pkg_Initializer;
|
||||
use Automattic\Jetpack\Waf\Waf_Initializer as Jetpack_Waf_Main;
|
||||
use Automattic\Jetpack\WordAds\Initializer as Jetpack_WordAds_Main;
|
||||
use Automattic\Jetpack\Yoast_Promo as Yoast_Promo;
|
||||
|
||||
/**
|
||||
* The configuration class.
|
||||
@ -56,6 +57,7 @@ class Config {
|
||||
'stats' => false,
|
||||
'stats_admin' => false,
|
||||
'blaze' => false,
|
||||
'yoast_promo' => false,
|
||||
'import' => false,
|
||||
);
|
||||
|
||||
@ -165,6 +167,10 @@ class Config {
|
||||
$this->ensure_class( 'Automattic\Jetpack\Blaze' ) && $this->ensure_feature( 'blaze' );
|
||||
}
|
||||
|
||||
if ( $this->config['yoast_promo'] ) {
|
||||
$this->ensure_class( 'Automattic\Jetpack\Yoast_Promo' ) && $this->ensure_feature( 'yoast_promo' );
|
||||
}
|
||||
|
||||
if ( $this->config['import'] ) {
|
||||
$this->ensure_class( 'Automattic\Jetpack\Import\Main' )
|
||||
&& $this->ensure_feature( 'import' );
|
||||
@ -362,6 +368,14 @@ class Config {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables Yoast Promo.
|
||||
*/
|
||||
protected function enable_yoast_promo() {
|
||||
Yoast_Promo::init();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables the Import feature.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user