: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import jQuery from 'jquery';
export default function () {
const form = jQuery('#pubguru-modules');
const wrapNotice = jQuery('#pubguru-notices');
form.on('input', 'input:checkbox', function () {
const checkbox = jQuery(this);
const module = checkbox.attr('name');
const status = checkbox.is(':checked');
url: form.attr('action'),
action: 'pubguru_module_change',
security: form.data('security'),
wrapNotice.on('click', '.js-btn-backup-adstxt', function () {
const button = jQuery(this);
button.prop('disabled', true);
button.html(button.data('loading'));
url: form.attr('action'),
action: 'pubguru_backup_ads_txt',
security: button.data('security'),
button.html(button.data('done'));
wrapNotice.fadeOut('slow', () => {
button.html(button.data('text'));
button.html(button.data('text'));