diff --git a/inc/performance_optimizations/namespace.php b/inc/performance_optimizations/namespace.php index 64243890..b4f2cb37 100644 --- a/inc/performance_optimizations/namespace.php +++ b/inc/performance_optimizations/namespace.php @@ -73,5 +73,9 @@ function schedule_events_in_admin( $pre, string $hook ) { return $pre; } - return true; + // Non-empty filter return values are expected by wp_next_scheduled to have + // a numeric ->timestamp property. + return (object) [ + 'timestamp' => time() + HOUR_IN_SECONDS, + ]; }