Yun X
asked 9 years ago

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 πŸ™‚

replied 9 years ago

thanks πŸ™‚

1 Answers
answered 9 years ago

Thanks a lot for posting this issue ! I’m appreciate it .


Powered by DW Question & Answer Pro