PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 2.6.2
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v2.6.2
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
← All changes | freemius/templates/forms/affiliation.php +6 -6 1.3.3 → 2.6.2 View file →
@@ -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 -?>