: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
var customizePrefix = '_customize-input-';
var themePrefix = 'ppw_customize_presets_settings';
var defaultShowLogo = null;
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
$(document).ready(function($) {
$('textarea.wp-editor-area').each(function () {
$input = $('input[data-customize-setting-link="' + id + '"]');
$this.css('visibility', 'visible').on('keyup', function () {
$input.val($this.val()).trigger('change');
const editor = tinyMCE.get(id);
editor.on('change', function (e) {
$input.val(editor.getContent()).trigger('change');
setup: function (editor) {
const $wraps = $this.closest('.wp-core-ui.wp-editor-wrap');
$($wrap).addClass('tmce-active').removeClass('html-active');
editor.on('change', function (e) {
$input.val(editor.getContent()).trigger('change');
$('.customize-control-ppw-presets input[type="radio"]').on('change', function () {
var theme = $(this).val();
Object.keys(defaultData).forEach(function(theme) {
if ( $('#' + themePrefix + theme).is(':checked') ) {
var themeData = defaultData[theme];
Object.keys(themeData).forEach(function(themeKey){
changeInput(themeKey, themeData[themeKey], 'change');
var checkbox_values = $(this)
.parents('.customize-control')
.find('input[type="radio"]:checked')
.parents('.customize-control')
.find('input[type="hidden"]')
$logo = $('#toggle-ppwp_pro_logo_disable_control');
if (defaultShowLogo !== null) {
defaultShowLogo = $logo.is(':checked');
if ( 'default0' !== theme && $logo.length > 0) {
$logo.prop('checked', true).trigger('input');
$logo.prop('checked', defaultShowLogo).trigger('input');
function changeInput( key, value, type = 'input' ) {
$(key).val(value).delay(500).trigger(type);
})(jQuery, wp.customize);