Plugin Directory

Changeset 486152


Ignore:
Timestamp:
01/07/2012 01:11:15 PM (14 years ago)
Author:
manfer
Message:

Fixed breaks BWP recaptcha registration form feature.

Location:
contact-form-7-bwp-recaptcha-extension/trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • contact-form-7-bwp-recaptcha-extension/trunk/contact-form-7-bwp-recaptcha-extension.php

    r485945 r486152  
    44Plugin URI: http://www.manfersite.tk/cf7bwpcapt
    55Description: Provides Better WordPress reCAPTCHA possibilities to the Contact Form 7 plugin. Requires both.
    6 Version: 0.4
     6Version: 0.5
    77Author: Fernando San Julián
    88Email: manfer.site@gmail.com
     
    3131// this is the 'driver' file that instantiates the object
    3232define( 'ALLOW_CF7_BWP_CAPT_INCLUDE', true );
    33 define( 'CF7BWPRECAPT_VERSION', '0.4' );
     33define( 'CF7BWPRECAPT_VERSION', '0.5' );
    3434define( 'CF7BWPRECAPT_URL', 'http://www.manfersite.tk/cf7bwpcapt' );
    3535define( 'CF7BWPRECAPT_TITLE', 'Contact Form 7 BWP reCAPTCHA Extension' );
  • contact-form-7-bwp-recaptcha-extension/trunk/includes/CF7bwpCAPT.class.php

    r485945 r486152  
    3939            $this->options = get_option( $options );
    4040            $this->requirements_met = $this->meets_requirements();
    41 
    42             require_once( dirname(__FILE__) . '/recaptcha/recaptchalib.php' );
    4341
    4442            // register settings page
     
    422420            $bwp_capt_lang  = $bwp_capt->options['select_lang'];
    423421
     422            // override bwp recaptcha options with cf7 bwp recaptcha ones when needed
    424423            if ( $this->options[ 'select_theme' ] === 'cf7'
    425424            && isset( $this->options[ 'cf7_theme' ] ) ) {
     
    432431            }
    433432
    434             // add_recaptcha function outputs directly so we have to buffer
    435             // that to store it in a variable instead.
     433            // load recaptcha library
     434            if ( ! defined( 'RECAPTCHA_API_SERVER' ) )
     435                require_once( plugin_dir_path( $bwp_capt->plugin_file ) . 'includes/recaptcha/recaptchalib.php' );
     436
     437            // add_recaptcha echoes so we have to buffer its output
     438            // to store it in a variable instead.
    436439            ob_start();
    437440            $bwp_capt->add_recaptcha();
  • contact-form-7-bwp-recaptcha-extension/trunk/readme.txt

    r485945 r486152  
    55Requires at least: 2.9
    66Tested up to: 3.1.3
    7 Stable tag: 0.4
     7Stable tag: 0.5
    88
    99This plugin provides a new tag for the Contact Form 7 Plugin. It allows the usage of a reCAPTCHA field provided by the BWP reCAPTCHA Plugin.
     
    6666== Changelog ==
    6767
     68= 0.5 (20120107) =
     69* Fixed breaks BWP Recaptcha registration form feature.
     70
    6871= 0.4 (20120107) =
    6972* Fixed hide for qualified users feature.
Note: See TracChangeset for help on using the changeset viewer.