class.jetpack-heartbeat.php 1 location
|
@@ 178-186 (lines=9) @@
|
175 |
|
return self::generate_stats_array( $params ); |
176 |
|
} |
177 |
|
|
178 |
|
public function deactivate() { |
179 |
|
// Deal with the old pre-3.0 weekly one. |
180 |
|
if ( $timestamp = wp_next_scheduled( 'jetpack_heartbeat' ) ) { |
181 |
|
wp_unschedule_event( $timestamp, 'jetpack_heartbeat' ); |
182 |
|
} |
183 |
|
|
184 |
|
$timestamp = wp_next_scheduled( $this->cron_name ); |
185 |
|
wp_unschedule_event( $timestamp, $this->cron_name ); |
186 |
|
} |
187 |
|
|
188 |
|
} |
189 |
|
|
packages/heartbeat/src/class-heartbeat.php 1 location
|
@@ 187-196 (lines=10) @@
|
184 |
|
* |
185 |
|
* @return void |
186 |
|
*/ |
187 |
|
public function deactivate() { |
188 |
|
// Deal with the old pre-3.0 weekly one. |
189 |
|
$timestamp = wp_next_scheduled( 'jetpack_heartbeat' ); |
190 |
|
if ( $timestamp ) { |
191 |
|
wp_unschedule_event( $timestamp, 'jetpack_heartbeat' ); |
192 |
|
} |
193 |
|
|
194 |
|
$timestamp = wp_next_scheduled( $this->cron_name ); |
195 |
|
wp_unschedule_event( $timestamp, $this->cron_name ); |
196 |
|
} |
197 |
|
|
198 |
|
} |
199 |
|
|