Breaks AJAX guttenberg editor
-
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);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Breaks AJAX guttenberg editor’ is closed to new replies.