Replies: 0
Hello dear members.
When some error occuring WPH breaks standart json output of any plugin by uncoditionaly outputting debug messages.
it outputs
“<b>WP Hide</b> – Unable to create environment static file. The system returned the following”
prior to any content and since so it breaks save functionality made by ajax
i beleive that warning should be outputed only on non-ajax call which can be checked by DOING_AJAX constant.
i’ve made a quick and quirk fix for that but it shoul be fixed in core.
function pre_option_wph_process_set_static_environment_errors($opt){
if (DOING_AJAX) return [];
else return $opt;
}
add_filter('pre_option_wph-process_set_static_environment_errors', pre_option_wph_process_set_static_environment_errors);