Verified Commit 077b7876 authored by Erick Hitter's avatar Erick Hitter
Browse files

If an event is invalid, don't leave it to persist forever

parent 4f3b2efc
......@@ -129,8 +129,10 @@ class Cron_Options_CPT extends Singleton {
continue;
}
// Retrieve event's remaining data
$job_args = maybe_unserialize( $jobs_post->post_content_filtered );
if ( ! is_array( $job_args ) ) {
$this->mark_job_post_completed( $jobs_post->ID );
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment