| @@ -53,12 +53,9 @@ | ||
| 53 | 53 | </div> |
| 54 | 54 | HTML; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $message_above_input_field = $fs->is_only_premium() ? | |
| 58 | - fs_esc_html_inline( "Enter the email address you've used during the purchase and we will resend you the license key.", 'ask-for-upgrade-email-address-premium-only', $slug ) : | |
| 59 | - fs_esc_html_inline( "Enter the email address you've used for the upgrade below and we will resend you the license key.", 'ask-for-upgrade-email-address', $slug ); | |
| 60 | - | |
| 57 | + $message_above_input_field = fs_esc_html_inline( "Enter the email address you've used for the upgrade below and we will resend you the license key.", 'ask-for-upgrade-email-address', $slug ); | |
| 61 | 58 | $modal_content_html = <<< HTML |
| 62 | 59 | <div class="notice notice-error inline license-resend-message"><p></p></div> |
| 63 | 60 | <p>{$message_above_input_field}</p> |
| 64 | 61 | <div class="input-container"> |
| @@ -144,9 +141,9 @@ | ||
| 144 | 141 | return; |
| 145 | 142 | } |
| 146 | 143 | |
| 147 | 144 | $.ajax({ |
| 148 | - url : <?php echo Freemius::ajax_url() ?>, | |
| 145 | + url : ajaxurl, | |
| 149 | 146 | method : 'POST', |
| 150 | 147 | data : { |
| 151 | 148 | action : '<?php echo $fs->get_ajax_action( 'resend_license_key' ) ?>', |
| 152 | 149 | security : '<?php echo $fs->get_ajax_security( 'resend_license_key' ) ?>', |