We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b17a668 commit 138d241Copy full SHA for 138d241
includes/data-events/class-data-events.php
@@ -139,7 +139,8 @@ public static function init() {
139
* @return bool
140
*/
141
private static function use_action_scheduler() {
142
- $use = defined( 'NEWSPACK_DATA_EVENTS_ACTIONSCHEDULER' ) && NEWSPACK_DATA_EVENTS_ACTIONSCHEDULER;
+ $use = defined( 'NEWSPACK_DATA_EVENTS_ACTIONSCHEDULER' ) && NEWSPACK_DATA_EVENTS_ACTIONSCHEDULER
143
+ && function_exists( 'as_enqueue_async_action' );
144
return apply_filters( 'newspack_data_events_use_action_scheduler_dispatch', $use );
145
}
146
0 commit comments