PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/class-actionscheduler-setup.php +12 -0 5.7.0 → 6.3.0 View file →
@@ -58,11 +58,19 @@
58 58 */
59 59 private static function register_tables(): void {
60 60 self::load_dependencies();
61 61
62 + if ( ! class_exists( 'ActionScheduler_HybridStore' ) ) {
63 + return;
64 + }
65 +
62 66 $store = new ActionScheduler_HybridStore();
63 67 add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );
64 68
69 + if ( ! class_exists( 'ActionScheduler_StoreSchema' ) || ! class_exists( 'ActionScheduler_LoggerSchema' ) ) {
70 + return;
71 + }
72 +
65 73 $store_schema = new ActionScheduler_StoreSchema();
66 74 $logger_schema = new ActionScheduler_LoggerSchema();
67 75
68 76 $store_schema->register_tables( true );
@@ -77,8 +85,12 @@
77 85 * @return bool
78 86 */
79 87 private static function tables_exist(): bool {
80 88 self::load_dependencies();
89 +
90 + if ( ! class_exists( 'ActionScheduler_StoreSchema' ) ) {
91 + return false;
92 + }
81 93
82 94 $store_schema = new ActionScheduler_StoreSchema();
83 95 return $store_schema->tables_exist();
84 96 }