updated plugin Jetpack Protect
version 1.1.1
This commit is contained in:
@ -58,6 +58,26 @@ class Host {
|
||||
return Constants::is_defined( 'WPCOM_IS_VIP_ENV' ) && true === Constants::get_constant( 'WPCOM_IS_VIP_ENV' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if this is a Simple platform site.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_wpcom_simple() {
|
||||
return Constants::is_defined( 'IS_WPCOM' ) && true === Constants::get_constant( 'IS_WPCOM' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if this is a WordPress.com site.
|
||||
*
|
||||
* Includes both Simple and WoA platforms.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_wpcom_platform() {
|
||||
return $this->is_wpcom_simple() || $this->is_woa_site();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all wordpress.com environments to the safe redirect allowed list.
|
||||
*
|
||||
|
Reference in New Issue
Block a user