| @@ -68,15 +68,12 @@ | ||
| 68 | 68 | $promotion_method_social_media = in_array( 'social_media', $promotion_methods ); |
| 69 | 69 | $promotion_method_mobile_apps = in_array( 'mobile_apps', $promotion_methods ); |
| 70 | 70 | } |
| 71 | 71 | } else { |
| 72 | - if ( ! is_object( $user ) ) { | |
| 73 | - $current_user = Freemius::_get_current_wp_user(); | |
| 74 | - $full_name = trim( $current_user->user_firstname . ' ' . $current_user->user_lastname ); | |
| 75 | - $email_address = $current_user->user_email; | |
| 76 | - } | |
| 77 | - | |
| 78 | - $domain = Freemius::get_unfiltered_site_url( null, true ); | |
| 72 | + $current_user = Freemius::_get_current_wp_user(); | |
| 73 | + $full_name = trim( $current_user->user_firstname . ' ' . $current_user->user_lastname ); | |
| 74 | + $email_address = $current_user->user_email; | |
| 75 | + $domain = Freemius::get_unfiltered_site_url( null, true ); | |
| 79 | 76 | } |
| 80 | 77 | |
| 81 | 78 | $affiliate_tracking = 30; |
| 82 | 79 | |
| @@ -507,4 +504,12 @@ | ||
| 507 | 504 | <?php |
| 508 | 505 | if ( $has_tabs ) { |
| 509 | 506 | $fs->_add_tabs_after_content(); |
| 510 | 507 | } |
| 508 | + | |
| 509 | + $params = array( | |
| 510 | + 'page' => 'affiliation', | |
| 511 | + 'module_id' => $module_id, | |
| 512 | + 'module_slug' => $slug, | |
| 513 | + 'module_version' => $fs->get_plugin_version(), | |
| 514 | + ); | |
| 515 | + fs_require_template( 'powered-by.php', $params ); | |