mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Add secure class for security measures
This commit is contained in:
@@ -607,6 +607,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->gdpr();
|
||||
$this->member_directory();
|
||||
$this->blocks();
|
||||
$this->secure();
|
||||
|
||||
//if multisite networks active
|
||||
if ( is_multisite() ) {
|
||||
@@ -650,6 +651,20 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.6.7
|
||||
*
|
||||
* @return um\core\Secure()
|
||||
*/
|
||||
public function secure() {
|
||||
if ( empty( $this->classes['secure'] ) ) {
|
||||
$this->classes['secure'] = new um\core\Secure();
|
||||
}
|
||||
|
||||
return $this->classes['secure'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get extension API
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user