Skip to content

Commit

Permalink
chore: updated Freemius SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 16, 2024
1 parent 8250bcb commit 7159f9a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 41 deletions.
2 changes: 1 addition & 1 deletion freemius/assets/css/admin/dialog-boxes.css

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions freemius/includes/class-freemius.php
Original file line number Diff line number Diff line change
Expand Up @@ -4174,13 +4174,17 @@ function has_api_connectivity( $flush_if_no_connectivity = false ) {
! empty( $this->_storage->connectivity_test ) &&
isset( $this->_storage->connectivity_test['is_active'] )
) {
$is_active = $this->_storage->connectivity_test['is_active'];
$is_connected = isset( $this->_storage->connectivity_test['is_connected'] ) ?
$this->_storage->connectivity_test['is_connected'] :
null;
$is_active = ( $this->_storage->connectivity_test['is_active'] || is_object( $this->_site ) );
} else {
$is_active = $this->should_turn_fs_on( $this->apply_filters( 'is_plugin_update', $this->is_plugin_update() ) );

$this->store_connectivity_info( (object) array( 'is_active' => $is_active ), null );
$is_connected = null;
$is_active = $this->should_turn_fs_on( $this->apply_filters( 'is_plugin_update', $this->is_plugin_update() ) );
}

$this->store_connectivity_info( (object) array( 'is_active' => $is_active ), $is_connected );

if ( $is_active ) {
$this->_is_on = true;
}
Expand Down Expand Up @@ -5484,7 +5488,12 @@ private function parse_settings( &$plugin_info ) {
'affiliate_moderation' => $this->get_option( $plugin_info, 'has_affiliation' ),
'bundle_id' => $this->get_option( $plugin_info, 'bundle_id', null ),
'bundle_public_key' => $this->get_option( $plugin_info, 'bundle_public_key', null ),
'opt_in_moderation' => $this->get_option( $plugin_info, 'opt_in', null ),
'opt_in_moderation' => $this->get_option(
$plugin_info,
'opt_in',
// For backward compatibility, we support both parameter names: opt_in and opt_in_moderation.
$this->get_option( $plugin_info, 'opt_in_moderation', null )
),
) );

if ( $plugin->is_updated() ) {
Expand Down
19 changes: 0 additions & 19 deletions freemius/phpcompat.xml

This file was deleted.

14 changes: 0 additions & 14 deletions freemius/phpstan.neon

This file was deleted.

2 changes: 1 addition & 1 deletion freemius/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.7.2';
$this_sdk_version = '2.7.3';

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

Expand Down
1 change: 0 additions & 1 deletion freemius/templates/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ class="wrap<?php if ( ! fs_is_network_admin() && ( ! $fs->is_enable_anonymous()

fs_require_once_template( 'plugin-icon.php', $vars );
?>
<!-- <img class="fs-connect-logo" width="--><?php //echo $size ?><!--" height="--><?php //echo $size ?><!--" src="//img.freemius.com/logo/connect.svg"/>-->
</div>
<div class="fs-box-container">
<div class="fs-content">
Expand Down

0 comments on commit 7159f9a

Please sign in to comment.