Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.13.0';
$this_sdk_version = '2.13.0.1';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down
22 changes: 17 additions & 5 deletions templates/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@
$available_license_paid_plan = is_object( $available_license ) ?
$fs->_get_plan_by_id( $available_license->plan_id ) :
null;

$is_dev_mode = ( defined( 'WP_FS__DEV_MODE' ) && WP_FS__DEV_MODE );
?>
<div class="wrap fs-section">
<?php if ( ! $has_tabs && ! $fs->apply_filters( 'hide_account_tabs', false ) ) : ?>
Expand Down Expand Up @@ -787,7 +789,7 @@ class="fs-tag fs-<?php echo $fs->can_use_premium_code() ? 'success' : 'warn' ?>"
<th><?php echo esc_html( $plan_text ) ?></th>
<th><?php fs_esc_html_echo_x_inline( 'License', 'as software license', 'license', $slug ) ?></th>
<th></th>
<?php if ( defined( 'WP_FS__DEV_MODE' ) && WP_FS__DEV_MODE ) : ?>
<?php if ( $is_dev_mode ) : ?>
<th></th>
<?php endif ?>
</tr>
Expand Down Expand Up @@ -853,10 +855,20 @@ class="fs-tag fs-<?php echo $fs->can_use_premium_code() ? 'success' : 'warn' ?>"
'is_whitelabeled' => ( $is_whitelabeled && ! $is_data_debug_mode )
);

fs_require_template(
'account/partials/addon.php',
$addon_view_params
);
if ( ! empty($addon_view_params['addon_info'] ) ) {
fs_require_template(
'account/partials/addon.php',
$addon_view_params
);
} else {
// If we are here it means there is an activation of an unreleased add-on and yet the SDK is not in development mode.
echo '<tr>';
echo '<td style="text-align: right;">' . esc_html( $addon_id ) . '</td>';
echo '<td colspan="' . ( $is_dev_mode ? 6 : 5 ) . '" style="text-align: left;">';
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.';
echo '</td>';
echo '</tr>';
}

$odd = ! $odd;
} ?>
Expand Down