Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/content-.../inc/freemius/template...
File: gdpr-optin-js.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 2.1.0
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* @var array $VARS
[13] Fix | Delete
*/
[14] Fix | Delete
$fs = freemius( $VARS['id'] );
[15] Fix | Delete
?>
[16] Fix | Delete
<script type="text/javascript">
[17] Fix | Delete
(function( $ ) {
[18] Fix | Delete
$( document ).ready(function() {
[19] Fix | Delete
var $gdprOptinNotice = $( 'div[data-id^="gdpr_optin_actions"]' );
[20] Fix | Delete
if ( 0 === $gdprOptinNotice.length ) {
[21] Fix | Delete
return;
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
$gdprOptinNotice.on( 'click', '.button', function() {
[25] Fix | Delete
var
[26] Fix | Delete
$this = $( this ),
[27] Fix | Delete
allowMarketing = $this.hasClass( 'allow-marketing' ),
[28] Fix | Delete
cursor = $this.css( 'cursor' ),
[29] Fix | Delete
$products = $gdprOptinNotice.find( 'span[data-plugin-id]' ),
[30] Fix | Delete
pluginIDs = [],
[31] Fix | Delete
ajaxUrl = <?php echo Freemius::ajax_url() ?>;
[32] Fix | Delete
[33] Fix | Delete
if ( $products.length > 0 ) {
[34] Fix | Delete
$products.each(function() {
[35] Fix | Delete
pluginIDs.push( $( this ).data( 'plugin-id' ) );
[36] Fix | Delete
});
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
$.ajax({
[40] Fix | Delete
url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({
[41] Fix | Delete
action : '<?php echo $fs->get_ajax_action( 'gdpr_optin_action' ) ?>',
[42] Fix | Delete
security : '<?php echo $fs->get_ajax_security( 'gdpr_optin_action' ) ?>',
[43] Fix | Delete
module_id: '<?php echo $fs->get_id() ?>'
[44] Fix | Delete
}),
[45] Fix | Delete
method : 'POST',
[46] Fix | Delete
data : {
[47] Fix | Delete
is_marketing_allowed: allowMarketing,
[48] Fix | Delete
plugin_ids : pluginIDs
[49] Fix | Delete
},
[50] Fix | Delete
beforeSend: function() {
[51] Fix | Delete
$this.text( <?php fs_json_encode_echo_inline( 'Thanks, please wait', 'thanks-please-wait', $fs->get_slug() ) ?> + '...' );
[52] Fix | Delete
$this.css({'cursor': 'wait'});
[53] Fix | Delete
[54] Fix | Delete
$gdprOptinNotice.find( '.button' ).addClass( 'disabled' );
[55] Fix | Delete
},
[56] Fix | Delete
complete : function() {
[57] Fix | Delete
$this.css({'cursor': cursor});
[58] Fix | Delete
[59] Fix | Delete
$gdprOptinNotice.remove();
[60] Fix | Delete
}
[61] Fix | Delete
});
[62] Fix | Delete
});
[63] Fix | Delete
});
[64] Fix | Delete
})( jQuery );
[65] Fix | Delete
</script>
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function