Plugin Directory

Changeset 882466


Ignore:
Timestamp:
03/26/2014 05:28:00 PM (12 years ago)
Author:
solvemedia
Message:

Bug fix in CF7 support

Location:
solvemedia/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • solvemedia/trunk/readme.txt

    r714044 r882466  
    33Tags: akismet, captcha, registration, contact form 7, advertising, anti-spam, plugin, solve media, spam, captcha advertising, security, monetize, type-in, security captcha, iPhone, iPad, Blackberry, Android, Windows Phone 7, WPMS, BuddyPress
    44Requires at least: 2.8.4
    5 Tested up to: 3.5.1
    6 Stable tag: 1.1.4
     5Tested up to: 3.8.1
     6Stable tag: 1.1.5
    77
    88Secure & Monetize your site with Solve Media's CAPTCHA replacement.
     
    4141== Changelog ==
    4242
     43= 1.1.5 =
     44* Fixed bug in CF7 compatibility
     45
    4346= 1.1.4 =
    4447* Fixed bug where replying to a comment would break captcha in some browsers
     
    6770
    6871== Upgrade Notice ==
     72
     73= 1.1.5 =
     74* Fixed bug in CF7 compatibility
    6975
    7076= 1.1.4 =
  • solvemedia/trunk/solvemedia.cf7.inc

    r696631 r882466  
    6666    global $adcopy_opt, $wpcf7_contact_form;
    6767   
    68     if ($_POST['adcopy_challenge']) {
    69         if (empty($_POST['adcopy_response'])) {
     68    if (empty($_POST['adcopy_response'])) {
     69        $result['valid'] = false;
     70        $result['reason']['solvemedia'] = $adcopy_opt['error_blank_cf7'];
     71    }
     72    else {
     73        $response = solvemedia_wp_check_answer();
     74
     75        if (!$response->is_valid) {
    7076            $result['valid'] = false;
    71             $result['reason']['solvemedia'] = $adcopy_opt['error_blank_cf7'];
    72         }
    73         else {
    74             $response = solvemedia_wp_check_answer();
    75 
    76             if (!$response->is_valid) {
    77                 $result['valid'] = false;
    78                 $result['reason']['solvemedia'] = $adcopy_opt['error_incorrect_cf7'];
    79             }
     77            $result['reason']['solvemedia'] = $adcopy_opt['error_incorrect_cf7'];
    8078        }
    8179    }
  • solvemedia/trunk/solvemedia.php

    r714044 r882466  
    44Plugin URI: http://www.solvemedia.com/
    55Description: Integrates Solve Media's anti-spam solutions with wordpress
    6 Version: 1.1.4
     6Version: 1.1.5
    77Author: Ilia Fishbein
    88Email: support@solvemedia.com
Note: See TracChangeset for help on using the changeset viewer.