diff --git a/includes/class-freemius.php b/includes/class-freemius.php index e3936d09c..53d940098 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -13792,7 +13792,7 @@ function _install_premium_version_ajax_action() { ) ); } - $plugin_id = fs_request_get( 'module_id', $this->get_id() ); + $plugin_id = fs_request_get( 'target_module_id', $this->get_id() ); if ( ! FS_Plugin::is_valid_id( $plugin_id ) ) { // Invalid ID. @@ -13910,10 +13910,11 @@ function _add_auto_installation_dialog_box() { } } - $vars = array( - 'id' => $plugin_id, - 'slug' => $this->_slug, - ); + $vars = array( + 'id' => $this->_module_id, + 'target_module_id' => $plugin_id, + 'slug' => $this->_slug, + ); fs_require_template( 'auto-installation.php', $vars ); } diff --git a/templates/add-ons.php b/templates/add-ons.php index 5373fa695..58378aa1b 100755 --- a/templates/add-ons.php +++ b/templates/add-ons.php @@ -132,7 +132,7 @@ class="fs-price">
  • info->short_description ) ? $addon->info->short_description : 'SHORT DESCRIPTION' ?>
  • -
  • +
  • diff --git a/templates/auto-installation.php b/templates/auto-installation.php index 84a0beef6..108e8ee33 100644 --- a/templates/auto-installation.php +++ b/templates/auto-installation.php @@ -13,10 +13,10 @@ /** * @var array $VARS */ - $slug = $VARS['slug']; - $plugin_id = $VARS['id']; + $slug = $VARS['slug']; + $plugin_id = $VARS['target_module_id']; - $fs = freemius( $plugin_id ); + $fs = freemius( $VARS['id'] ); $action = $fs->is_tracking_allowed() ? 'stop_tracking' : @@ -145,10 +145,11 @@ class="button button-primary">get_ajax_action( 'install_premium_version' ) ?>', - security : 'get_ajax_security( 'install_premium_version' ) ?>', - slug : '', - module_id: '' + action : 'get_ajax_action( 'install_premium_version' ) ?>', + security : 'get_ajax_security( 'install_premium_version' ) ?>', + slug : '', + module_id : 'get_id() ?>', + target_module_id: '' }; if (requireCredentials) { diff --git a/templates/connect.php b/templates/connect.php index 2b39e3d65..adfe4c95a 100755 --- a/templates/connect.php +++ b/templates/connect.php @@ -189,7 +189,7 @@ class="wrapis_enable_anonymous() || $is_pending_activation || placeholder="" tabindex="1"/> + href="#">