wp_unslash in comments

4.57K viewsGeneral
0

When creating a comment, the “\” characters are being filtered out. Is there a way to fix this as was the case in the answer to this question: https://anspress.io/questions/question/adding-latex-to-questions/

I’m just testing if it works here $\test$

Ahh, it does, so how do I achieve this with askbug/anspress?

0

Hello Curtis,

I hope you are using AnsPress 3.x. Please follow below steps to fix your issue.

  1. Open this file: includes/comments.php
  2. G to line 132
  3. Replace
    ap_sanitize_unslash( 'content', 'request' )

    with

    ap_isset_post_value( 'content' )

     

You are viewing 1 out of 1 answers, click here to view all answers.