Hi, thanks for your great plugin, and I really love it π
I noticed that when editing question, it will filter some HTML tags which were allowed by question creation. I debug in the code and finally find out where the problem is. I have solved the problem on my end by modifying the actions.php file, and I’d like to share what I did and maybe you guys would consider fixing it in your repository.
The problem is the missing of global declaration for $post_submit_filter in the beginning of dwqa_update_question() function. When calling the wp_kses function in line 886 in actions.php, the $post_submit_filter is actually empty, which causes the strange behavior.
Adding “global $post_submit_filter;” in line 867 of actions.php file can fix this issue.
I hope that’s useful π
Thanks a lot for posting this issue ! I’m appreciate it .
Please login or Register to submit your answer
replied 10 years ago
thanks π