mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- updated structure for action scheduler;
This commit is contained in:
@@ -503,10 +503,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
*/
|
||||
public function includes() {
|
||||
|
||||
$this->action_scheduler();
|
||||
if ( $this->options()->get( 'enable_action_scheduler' ) ) {
|
||||
$this->action_scheduler()->proxy();
|
||||
}
|
||||
$this->maybe_action_scheduler();
|
||||
|
||||
$this->common()->includes();
|
||||
|
||||
@@ -1465,7 +1462,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
*
|
||||
* @return um\action_scheduler\Init
|
||||
*/
|
||||
public function action_scheduler() {
|
||||
public function maybe_action_scheduler() {
|
||||
if ( empty( $this->classes['action_scheduler'] ) ) {
|
||||
$this->classes['action_scheduler'] = new um\action_scheduler\Init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user