| @@ -12,10 +12,12 @@ | ||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @var array $VARS |
| 15 | 15 | * @var Freemius $fs |
| 16 | + * @var string $plugin_title | |
| 16 | 17 | */ |
| 17 | - $fs = freemius( $VARS['id'] ); | |
| 18 | + $fs = freemius( $VARS['id'] ); | |
| 19 | + $plugin_title = $VARS['plugin_title']; | |
| 18 | 20 | |
| 19 | 21 | $slug = $fs->get_slug(); |
| 20 | 22 | |
| 21 | 23 | $user = $fs->get_user(); |
| @@ -21,9 +23,8 @@ | ||
| 21 | 23 | $user = $fs->get_user(); |
| 22 | 24 | $affiliate = $fs->get_affiliate(); |
| 23 | 25 | $affiliate_terms = $fs->get_affiliate_terms(); |
| 24 | 26 | |
| 25 | - $plugin_title = $fs->get_plugin_title(); | |
| 26 | 27 | $module_type = $fs->is_plugin() ? |
| 27 | 28 | WP_FS__MODULE_TYPE_PLUGIN : |
| 28 | 29 | WP_FS__MODULE_TYPE_THEME; |
| 29 | 30 | |
| @@ -44,9 +45,9 @@ | ||
| 44 | 45 | $promotion_method_social_media = false; |
| 45 | 46 | $promotion_method_mobile_apps = false; |
| 46 | 47 | $statistics_information = false; |
| 47 | 48 | $promotion_method_description = false; |
| 48 | - $members_dashboard_login_url = 'https://members.freemius.com/login/'; | |
| 49 | + $members_dashboard_login_url = 'https://users.freemius.com/login'; | |
| 49 | 50 | |
| 50 | 51 | $affiliate_application_data = $fs->get_affiliate_application_data(); |
| 51 | 52 | |
| 52 | 53 | if ( $is_affiliate && $affiliate->is_pending() ) { |
| @@ -70,9 +71,9 @@ | ||
| 70 | 71 | } else { |
| 71 | 72 | $current_user = Freemius::_get_current_wp_user(); |
| 72 | 73 | $full_name = trim( $current_user->user_firstname . ' ' . $current_user->user_lastname ); |
| 73 | 74 | $email_address = $current_user->user_email; |
| 74 | - $domain = fs_strip_url_protocol( get_site_url() ); | |
| 75 | + $domain = Freemius::get_unfiltered_site_url( null, true ); | |
| 75 | 76 | } |
| 76 | 77 | |
| 77 | 78 | $affiliate_tracking = 30; |
| 78 | 79 | |
| @@ -364,9 +365,9 @@ | ||
| 364 | 365 | affiliate.promotion_methods = promotionMethods.join(','); |
| 365 | 366 | } |
| 366 | 367 | |
| 367 | 368 | $.ajax({ |
| 368 | - url : ajaxurl, | |
| 369 | + url : <?php echo Freemius::ajax_url() ?>, | |
| 369 | 370 | method : 'POST', |
| 370 | 371 | data : { |
| 371 | 372 | action : '<?php echo $fs->get_ajax_action( 'submit_affiliate_application' ) ?>', |
| 372 | 373 | security : '<?php echo $fs->get_ajax_security( 'submit_affiliate_application' ) ?>', |
| @@ -505,5 +506,4 @@ | ||
| 505 | 506 | 'module_slug' => $slug, |
| 506 | 507 | 'module_version' => $fs->get_plugin_version(), |
| 507 | 508 | ); |
| 508 | 509 | fs_require_template( 'powered-by.php', $params ); |
| 509 | -?> | |