mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- reviewed #1496;
This commit is contained in:
+11
-16
@@ -553,7 +553,6 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->builtin();
|
||||
$this->form()->hooks();
|
||||
$this->permalinks();
|
||||
$this->modal();
|
||||
$this->cron();
|
||||
$this->mobile();
|
||||
$this->external_integrations();
|
||||
@@ -879,6 +878,17 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
return $this->admin()->enqueue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
* @deprecated 2.8.6
|
||||
*
|
||||
* @return um\frontend\Modal
|
||||
*/
|
||||
function modal() {
|
||||
_deprecated_function( __METHOD__, '2.8.6', 'UM()->frontend()->modal()' );
|
||||
return $this->frontend()->modal();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
@@ -1387,21 +1397,6 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
return $this->classes['logout'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
* @return um\core\Modal
|
||||
*/
|
||||
function modal() {
|
||||
if ( empty( $this->classes['modal'] ) ) {
|
||||
$this->classes['modal'] = new um\core\Modal();
|
||||
}
|
||||
|
||||
return $this->classes['modal'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user