• Empty question gets submitted.
    I did it by editing ur plugin
    if(0>= strip_tags(trim($_POST[“submitted q”]))){
    //throw error

    }

    …. but when i updated the plugin few days back all gone…!
    would u pls take a look at that?

    • This topic was modified 9 years, 5 months ago by joydipkar73.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joydipkar73

    (@joydipkar73)

    sorry, the above code would be

    if(0>= strlen(trim(strip_tags(trim($_POST[“submitted q”]))))){
    //throw error

    }

    Plugin Author DesignWall

    (@designwall)

    Hi, Thanks for contacting DesignWall,

    Please open the file wp-content/plugins/dwqa-question-answer/inc/Handle.php

    And add the following code under the line 297:

    if(0>= strlen(trim(strip_tags(trim($_POST[“submitted q”]))))){
    dwqa_add_notice( __( ‘Your notification’, ‘dwqa’ ), ‘error’ );
    return false;
    }

    If you need further assistances, please feel free to reach out.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Empty question gets submitted’ is closed to new replies.