Skip to content

Commit 37e738c

Browse files
committed
[debug] [cron] Enrich the debug page with the default WP-Cron status.
1 parent eae75b8 commit 37e738c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

start.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.13.0.1';
18+
$this_sdk_version = '2.13.0.2';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

templates/debug.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ function stopCountdownManually() {
257257
'key' => 'WP_FS__DIR',
258258
'val' => WP_FS__DIR,
259259
),
260+
array(
261+
'key' => 'DISABLE_WP_CRON',
262+
'val' => defined( 'DISABLE_WP_CRON' ) ? ( DISABLE_WP_CRON ? 'true' : 'false' ) : 'Not defined',
263+
),
260264
array(
261265
'key' => 'wp_using_ext_object_cache()',
262266
'val' => wp_using_ext_object_cache() ? 'true' : 'false',
@@ -282,7 +286,11 @@ function stopCountdownManually() {
282286
echo ' class="alternate"';
283287
} ?>>
284288
<td><?php echo $p['key'] ?></td>
285-
<td><?php echo $p['val'] ?></td>
289+
<td><?php echo $p['val'] ?><?php
290+
if ( 'DISABLE_WP_CRON' === $p['key'] && 'true' === $p['val'] ) {
291+
echo '<p><small><strong>Freemius SDK’s sync cron jobs will not run unless an alternative server-side cron is set up.</strong></small></p>';
292+
}
293+
?></td>
286294
</tr>
287295
<?php $alternate = ! $alternate ?>
288296
<?php endforeach ?>

0 commit comments

Comments
 (0)