: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$primaryCta.addClass('fs-loading');
$primaryCta.attr('disabled', 'disabled');
$primaryCta.html('<?php fs_esc_js_echo_inline( 'Please wait', 'please-wait', $slug ) ?>...');
url : <?php echo Freemius::ajax_url() ?>,
action : '<?php echo $fs->get_ajax_action( 'fetch_is_marketing_required_flag_value' ) ?>',
security : '<?php echo $fs->get_ajax_security( 'fetch_is_marketing_required_flag_value' ) ?>',
module_id : '<?php echo $fs->get_id() ?>'
success: function (result) {
isMarketingAllowedByLicense[licenseKey] = result.is_marketing_allowed;
afterMarketingFlagLoaded();
$marketingOptin.find( 'input' ).click(function() {
$marketingOptin.removeClass( 'error' );
fs_require_once_template( 'api-connectivity-message-js.php' );