@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | return isset( $args['arguments'] ) ? json_decode( $args['arguments'] ) : array(); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param double $gmt_time |
|
29 | + */ |
|
27 | 30 | protected function is_cron_locked( $gmt_time ) { |
28 | 31 | // The cron lock: a unix timestamp from when the cron was spawned. |
29 | 32 | $doing_cron_transient = $this->get_cron_lock(); |
@@ -33,6 +36,9 @@ discard block |
||
33 | 36 | return $doing_cron_transient; |
34 | 37 | } |
35 | 38 | |
39 | + /** |
|
40 | + * @param string $doing_wp_cron |
|
41 | + */ |
|
36 | 42 | protected function maybe_unlock_cron( $doing_wp_cron ) { |
37 | 43 | if ( $this->get_cron_lock() == $doing_wp_cron ) { |
38 | 44 | delete_transient( 'doing_cron' ); |