Skip to content

Commit

Permalink
Ensure $job->save() returns the result.
Browse files Browse the repository at this point in the history
  • Loading branch information
roborourke committed Sep 9, 2022
1 parent 08fdff0 commit 6299b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/class-job.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function save() {

self::flush_query_cache();
wp_cache_set( "job::{$this->id}", $this, 'cavalcade-jobs' );
return (bool) $result;
}

public function delete( $options = [] ) {
Expand Down

0 comments on commit 6299b32

Please sign in to comment.