This commit is contained in:
Mykyta Synelnikov
2024-04-11 14:48:37 +03:00
parent c6f398ab5f
commit 512787b836
6 changed files with 77 additions and 81 deletions
+11 -16
View File
@@ -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
*