Skip to content

Instantly share code, notes, and snippets.

@mwordpress
Created February 12, 2017 05:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mwordpress/bb0ed404b1ba915841e4f06d0ea96a9c to your computer and use it in GitHub Desktop.
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') && !$user_ID ) {
$mcsp_info = math_comment_spam_protection();
?>
<input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="4" />
<label for="mcspvalue"><small>كم مجموع <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?' ?> (مطلوب) </small></label>
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
<?php
} // if function_exists…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment