- added a few conditions and comments;

This commit is contained in:
Mykyta Synelnikov
2024-09-06 14:07:14 +03:00
parent 2d39dd6461
commit 5385e07a5f
3 changed files with 12 additions and 6 deletions
+5 -3
View File
@@ -1,12 +1,11 @@
<?php
namespace um\action_scheduler;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'um\Action_Scheduler\Proxy' ) ) {
if ( ! class_exists( 'um\action_scheduler\Proxy' ) ) {
/**
* Class Action_Scheduler
@@ -24,7 +23,10 @@ if ( ! class_exists( 'um\Action_Scheduler\Proxy' ) ) {
* Action_Scheduler constructor.
*/
public function __construct() {
require_once UM_PATH . 'includes/lib/action-scheduler/action-scheduler.php';
$lib_path = UM_PATH . 'includes/lib/action-scheduler/action-scheduler.php';
if ( file_exists( $lib_path ) ) {
require_once UM_PATH . 'includes/lib/action-scheduler/action-scheduler.php';
}
}
/**