Plugin Directory


Ignore:
Timestamp:
07/25/2023 01:33:16 AM (22 months ago)
Author:
xplodedthemes
Message:

Update v3.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpide/trunk/freemius/templates/debug.php

    r2830392r2942806 
    305305                ?>
    306306                <tr<?php if ( $is_active ) {
    307                     if ( $fs->has_api_connectivity() && $fs->is_on() ) {
     307                    $has_api_connectivity = $fs->has_api_connectivity();
     308
     309                    if ( true === $has_api_connectivity && $fs->is_on() ) {
    308310                        echo ' style="background: #E6FFE6; font-weight: bold"';
    309311                    } else {
    โ€ฆโ€ฆ 
    315317                    <td><?php echo $data->version ?></td>
    316318                    <td><?php echo $data->title ?></td>
    317                     <td<?php if ( $is_active && ! $fs->has_api_connectivity() ) {
     319                    <td<?php if ( $is_active && true !== $has_api_connectivity ) {
    318320                        echo ' style="color: red; text-transform: uppercase;"';
    319321                    } ?>><?php if ( $is_active ) {
    320                             echo esc_html( $fs->has_api_connectivity() ?
     322                            echo esc_html( true === $has_api_connectivity ?
    321323                                fs_text_x_inline( 'Connected', 'as connection was successful' ) :
    322                                 fs_text_x_inline( 'Blocked', 'as connection blocked' )
     324                                ( false === $has_api_connectivity ?
     325                                    fs_text_x_inline( 'Blocked', 'as connection blocked' ) :
     326                                    fs_text_x_inline( 'Unknown', 'API connectivity state is unknown' ) )
    323327                            );
    324328                        } ?></td>
Note: See TracChangeset for help on using the changeset viewer.