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