| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | /** |
| 22 | 22 | * @var FS_Plugin_Tag $update |
| 23 | 23 | */ |
| 24 | 24 | $update = $fs->has_release_on_freemius() ? |
| 25 | - $fs->get_update( false, false, WP_FS__TIME_24_HOURS_IN_SEC / 24 ) : | |
| 25 | + $fs->get_update( false, false ) : | |
| 26 | 26 | null; |
| 27 | 27 | |
| 28 | 28 | if ( is_object($update) ) { |
| 29 | 29 | /** |
| @@ -251,8 +251,10 @@ | ||
| 251 | 251 | |
| 252 | 252 | $available_license_paid_plan = is_object( $available_license ) ? |
| 253 | 253 | $fs->_get_plan_by_id( $available_license->plan_id ) : |
| 254 | 254 | null; |
| 255 | + | |
| 256 | + $is_dev_mode = ( defined( 'WP_FS__DEV_MODE' ) && WP_FS__DEV_MODE ); | |
| 255 | 257 | ?> |
| 256 | 258 | <div class="wrap fs-section"> |
| 257 | 259 | <?php if ( ! $has_tabs && ! $fs->apply_filters( 'hide_account_tabs', false ) ) : ?> |
| 258 | 260 | <h2 class="nav-tab-wrapper"> |
| @@ -509,9 +511,9 @@ | ||
| 509 | 511 | } |
| 510 | 512 | ?> |
| 511 | 513 | <tr class="fs-field-<?php echo esc_attr( $p['id'] ) ?><?php if ( $odd ) : ?> alternate<?php endif ?>"> |
| 512 | 514 | <td> |
| 513 | - <nobr><?php echo esc_attr( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr> | |
| 515 | + <nobr><?php echo esc_html( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr> | |
| 514 | 516 | </td> |
| 515 | 517 | <td<?php if ( 'plan' === $p['id'] || 'bundle_plan' === $p['id'] ) { echo ' colspan="2"'; }?>> |
| 516 | 518 | <?php if ( in_array( $p['id'], array( 'license_key', 'site_secret_key' ) ) ) : ?> |
| 517 | 519 | <code><?php echo FS_Plugin_License::mask_secret_key_for_html( $p['value'] ) ?></code> |
| @@ -722,9 +724,9 @@ | ||
| 722 | 724 | ?> |
| 723 | 725 | <a class="button<?php echo ( ! $has_license ? ' button-primary' : '' ) ?> activate-license-trigger <?php echo $fs->get_unique_affix() ?>" href="#"><?php echo $activate_license_button_text ?></a> |
| 724 | 726 | <?php endif ?> |
| 725 | 727 | <?php endif ?> |
| 726 | - <input class="fs-search" type="text" placeholder="<?php fs_esc_attr_echo_inline( 'Search by address', 'search-by-address', $slug ) ?>..."><span class="dashicons dashicons-search"></span> | |
| 728 | + <input class="fs-search" type="text" placeholder="<?php fs_esc_attr_echo_inline( 'Search by address', 'search-by-address', $slug ) ?>..." autocomplete="off"><span class="dashicons dashicons-search"></span> | |
| 727 | 729 | </div> |
| 728 | 730 | <div class="inside"> |
| 729 | 731 | <div id="" class="fs-scrollable-table"> |
| 730 | 732 | <div class="fs-table-head"> |
| @@ -786,9 +788,9 @@ | ||
| 786 | 788 | <th><?php echo esc_html( $version_text ) ?></th> |
| 787 | 789 | <th><?php echo esc_html( $plan_text ) ?></th> |
| 788 | 790 | <th><?php fs_esc_html_echo_x_inline( 'License', 'as software license', 'license', $slug ) ?></th> |
| 789 | 791 | <th></th> |
| 790 | - <?php if ( defined( 'WP_FS__DEV_MODE' ) && WP_FS__DEV_MODE ) : ?> | |
| 792 | + <?php if ( $is_dev_mode ) : ?> | |
| 791 | 793 | <th></th> |
| 792 | 794 | <?php endif ?> |
| 793 | 795 | </tr> |
| 794 | 796 | </thead> |
| @@ -852,12 +854,22 @@ | ||
| 852 | 854 | $fs->_get_addon_info( $addon_id, $is_addon_installed ), |
| 853 | 855 | 'is_whitelabeled' => ( $is_whitelabeled && ! $is_data_debug_mode ) |
| 854 | 856 | ); |
| 855 | 857 | |
| 856 | - fs_require_template( | |
| 857 | - 'account/partials/addon.php', | |
| 858 | - $addon_view_params | |
| 859 | - ); | |
| 858 | + if ( ! empty($addon_view_params['addon_info'] ) ) { | |
| 859 | + fs_require_template( | |
| 860 | + 'account/partials/addon.php', | |
| 861 | + $addon_view_params | |
| 862 | + ); | |
| 863 | + } else { | |
| 864 | + // If we are here it means there is an activation of an unreleased add-on and yet the SDK is not in development mode. | |
| 865 | + echo '<tr>'; | |
| 866 | + echo '<td style="text-align: right;">' . esc_html( $addon_id ) . '</td>'; | |
| 867 | + echo '<td colspan="' . ( $is_dev_mode ? 6 : 5 ) . '" style="text-align: left;">'; | |
| 868 | + echo 'The add-on you have activated is no longer <a href="https://freemius.com/help/documentation/wordpress/selling-add-ons-extensions/#preparing-the-add-on-for-sale" rel="noreferrer noopener" target="_blank">listed</a> by the product owner, or the SDK is not running in <a href="https://freemius.com/help/documentation/wordpress-sdk/testing/" rel="noreferrer noopener" target="_blank">test mode</a>. Please <a href="' . esc_url( $fs->contact_url() ) . '">contact support</a> if you need further assistance.'; | |
| 869 | + echo '</td>'; | |
| 870 | + echo '</tr>'; | |
| 871 | + } | |
| 860 | 872 | |
| 861 | 873 | $odd = ! $odd; |
| 862 | 874 | } ?> |
| 863 | 875 | </tbody> |
| @@ -1117,13 +1129,4 @@ | ||
| 1117 | 1129 | <?php |
| 1118 | 1130 | if ( $has_tabs ) { |
| 1119 | 1131 | $fs->_add_tabs_after_content(); |
| 1120 | 1132 | } |
| 1121 | - | |
| 1122 | - $params = array( | |
| 1123 | - 'page' => 'account', | |
| 1124 | - 'module_id' => $fs->get_id(), | |
| 1125 | - 'module_type' => $fs->get_module_type(), | |
| 1126 | - 'module_slug' => $slug, | |
| 1127 | - 'module_version' => $fs->get_plugin_version(), | |
| 1128 | - ); | |
| 1129 | - fs_require_template( 'powered-by.php', $params ); | |