| @@ -257,8 +257,12 @@ | ||
| 257 | 257 | 'key' => 'WP_FS__DIR', |
| 258 | 258 | 'val' => WP_FS__DIR, |
| 259 | 259 | ), |
| 260 | 260 | array( |
| 261 | + 'key' => 'DISABLE_WP_CRON', | |
| 262 | + 'val' => defined( 'DISABLE_WP_CRON' ) ? ( DISABLE_WP_CRON ? 'true' : 'false' ) : 'Not defined', | |
| 263 | + ), | |
| 264 | + array( | |
| 261 | 265 | 'key' => 'wp_using_ext_object_cache()', |
| 262 | 266 | 'val' => wp_using_ext_object_cache() ? 'true' : 'false', |
| 263 | 267 | ), |
| 264 | 268 | array( |
| @@ -281,9 +285,13 @@ | ||
| 281 | 285 | <tr<?php if ( $alternate ) { |
| 282 | 286 | echo ' class="alternate"'; |
| 283 | 287 | } ?>> |
| 284 | 288 | <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> | |
| 286 | 294 | </tr> |
| 287 | 295 | <?php $alternate = ! $alternate ?> |
| 288 | 296 | <?php endforeach ?> |
| 289 | 297 | </tbody> |
| @@ -352,8 +360,9 @@ | ||
| 352 | 360 | <th><?php fs_esc_html_echo_inline( 'Actions' ) ?></th> |
| 353 | 361 | </tr> |
| 354 | 362 | </thead> |
| 355 | 363 | <tbody> |
| 364 | + <?php $alternate = false; ?> | |
| 356 | 365 | <?php foreach ( $modules as $slug => $data ) : ?> |
| 357 | 366 | <?php |
| 358 | 367 | if ( WP_FS__MODULE_TYPE_THEME !== $module_type ) { |
| 359 | 368 | $is_active = is_plugin_active( $data->file ); |
| @@ -375,14 +384,14 @@ | ||
| 375 | 384 | |
| 376 | 385 | $active_modules_by_id[ $data->id ] = true; |
| 377 | 386 | } |
| 378 | 387 | ?> |
| 379 | - <tr<?php if ( $is_active ) { | |
| 388 | + <tr<?php if ( $alternate ) { echo ' class="alternate" '; } ?><?php if ( $is_active ) { | |
| 380 | 389 | $has_api_connectivity = $fs->has_api_connectivity(); |
| 381 | 390 | |
| 382 | 391 | if ( true === $has_api_connectivity && $fs->is_on() ) { |
| 383 | 392 | echo ' style="background: #E6FFE6; font-weight: bold"'; |
| 384 | - } else { | |
| 393 | + } else if ( false === $has_api_connectivity || ! $fs->is_on() ) { | |
| 385 | 394 | echo ' style="background: #ffd0d0; font-weight: bold"'; |
| 386 | 395 | } |
| 387 | 396 | } ?>> |
| 388 | 397 | <td><?php echo $data->id ?></td> |
| @@ -388,9 +397,9 @@ | ||
| 388 | 397 | <td><?php echo $data->id ?></td> |
| 389 | 398 | <td><?php echo $slug ?></td> |
| 390 | 399 | <td><?php echo $data->version ?></td> |
| 391 | 400 | <td><?php echo $data->title ?></td> |
| 392 | - <td<?php if ( $is_active && true !== $has_api_connectivity ) { | |
| 401 | + <td<?php if ( $is_active && false === $has_api_connectivity ) { | |
| 393 | 402 | echo ' style="color: red; text-transform: uppercase;"'; |
| 394 | 403 | } ?>><?php if ( $is_active ) { |
| 395 | 404 | echo esc_html( true === $has_api_connectivity ? |
| 396 | 405 | fs_text_x_inline( 'Connected', 'as connection was successful' ) : |
| @@ -395,9 +404,9 @@ | ||
| 395 | 404 | echo esc_html( true === $has_api_connectivity ? |
| 396 | 405 | fs_text_x_inline( 'Connected', 'as connection was successful' ) : |
| 397 | 406 | ( false === $has_api_connectivity ? |
| 398 | 407 | fs_text_x_inline( 'Blocked', 'as connection blocked' ) : |
| 399 | - fs_text_x_inline( 'Unknown', 'API connectivity state is unknown' ) ) | |
| 408 | + fs_text_x_inline( 'No requests yet', 'API connectivity state is unknown' ) ) | |
| 400 | 409 | ); |
| 401 | 410 | } ?></td> |
| 402 | 411 | <td<?php if ( $is_active && ! $fs->is_on() ) { |
| 403 | 412 | echo ' style="color: red; text-transform: uppercase;"'; |
| @@ -449,8 +458,9 @@ | ||
| 449 | 458 | <?php endif ?> |
| 450 | 459 | <?php endif ?> |
| 451 | 460 | </td> |
| 452 | 461 | </tr> |
| 462 | + <?php $alternate = ! $alternate ?> | |
| 453 | 463 | <?php endforeach ?> |
| 454 | 464 | </tbody> |
| 455 | 465 | </table> |
| 456 | 466 | <?php endif ?> |