Version Description
- Fix: Call to undefined function wpcf7_add_form_tag
Download this release
Release Info
| Developer | dfactory |
| Plugin | |
| Version | 1.2.10 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.9 to 1.2.10
- includes/integrations/contact-form-7.php +4 -5
- readme.txt +6 -4
- wp-math-captcha.php +3 -3
includes/integrations/contact-form-7.php
CHANGED
|
@@ -7,7 +7,8 @@
|
|
| 7 |
add_action( 'init', 'wpcf7_add_shortcode_mathcaptcha', 5 );
|
| 8 |
|
| 9 |
function wpcf7_add_shortcode_mathcaptcha() {
|
| 10 |
-
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
function wpcf7_mathcaptcha_shortcode_handler( $tag ) {
|
|
@@ -141,10 +142,8 @@ function wpcf7_mathcaptcha_display_warning_message() {
|
|
| 141 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_mathcaptcha', 45 );
|
| 142 |
|
| 143 |
function wpcf7_add_tag_generator_mathcaptcha() {
|
| 144 |
-
if (
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
wpcf7_add_tag_generator( 'mathcaptcha', __( 'Math Captcha', 'math-captcha' ), 'wpcf7-mathcaptcha', 'wpcf7_tg_pane_mathcaptcha' );
|
| 148 |
}
|
| 149 |
|
| 150 |
function wpcf7_tg_pane_mathcaptcha( $contact_form ) {
|
| 7 |
add_action( 'init', 'wpcf7_add_shortcode_mathcaptcha', 5 );
|
| 8 |
|
| 9 |
function wpcf7_add_shortcode_mathcaptcha() {
|
| 10 |
+
if ( function_exists( 'wpcf7_add_form_tag' ) )
|
| 11 |
+
wpcf7_add_form_tag( 'mathcaptcha', 'wpcf7_mathcaptcha_shortcode_handler', true );
|
| 12 |
}
|
| 13 |
|
| 14 |
function wpcf7_mathcaptcha_shortcode_handler( $tag ) {
|
| 142 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_mathcaptcha', 45 );
|
| 143 |
|
| 144 |
function wpcf7_add_tag_generator_mathcaptcha() {
|
| 145 |
+
if ( function_exists( 'wpcf7_add_tag_generator' ) )
|
| 146 |
+
wpcf7_add_tag_generator( 'mathcaptcha', __( 'Math Captcha', 'math-captcha' ), 'wpcf7-mathcaptcha', 'wpcf7_tg_pane_mathcaptcha' );
|
|
|
|
|
|
|
| 147 |
}
|
| 148 |
|
| 149 |
function wpcf7_tg_pane_mathcaptcha( $contact_form ) {
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
|
|
| 4 |
Tags: antispam, capcha, captcha, spam, security, cf7, contact form 7
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.9.8
|
| 7 |
-
Stable tag: 1.2.
|
| 8 |
License: MIT License
|
| 9 |
License URI: http://opensource.org/licenses/MIT
|
| 10 |
|
|
@@ -48,6 +48,9 @@ A. Chances are, someone else has asked it. Check out the support forum at: http:
|
|
| 48 |
|
| 49 |
|
| 50 |
|
|
|
|
|
|
|
|
|
|
| 51 |
= 1.2.9 =
|
| 52 |
* Fix: Potential vulnerability bugs
|
| 53 |
* Tweak: Improve getting server host name for comment blocking
|
|
@@ -136,6 +139,5 @@ A. Chances are, someone else has asked it. Check out the support forum at: http:
|
|
| 136 |
|
| 137 |
== Upgrade Notice ==
|
| 138 |
|
| 139 |
-
= 1.2.
|
| 140 |
-
* Fix:
|
| 141 |
-
* Tweak: Improve getting server host name for comment blocking
|
| 4 |
Tags: antispam, capcha, captcha, spam, security, cf7, contact form 7
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.9.8
|
| 7 |
+
Stable tag: 1.2.10
|
| 8 |
License: MIT License
|
| 9 |
License URI: http://opensource.org/licenses/MIT
|
| 10 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
+
= 1.2.10 =
|
| 52 |
+
* Fix: Call to undefined function wpcf7_add_form_tag
|
| 53 |
+
|
| 54 |
= 1.2.9 =
|
| 55 |
* Fix: Potential vulnerability bugs
|
| 56 |
* Tweak: Improve getting server host name for comment blocking
|
| 139 |
|
| 140 |
== Upgrade Notice ==
|
| 141 |
|
| 142 |
+
= 1.2.10 =
|
| 143 |
+
* Fix: Call to undefined function wpcf7_add_form_tag
|
|
|
wp-math-captcha.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: Math Captcha
|
| 4 |
Description: Math Captcha is a <strong>100% effective CAPTCHA for WordPress</strong> that integrates into login, registration, comments, Contact Form 7 and bbPress.
|
| 5 |
-
Version: 1.2.
|
| 6 |
Author: dFactory
|
| 7 |
Author URI: http://www.dfactory.eu/
|
| 8 |
Plugin URI: http://www.dfactory.eu/plugins/math-captcha/
|
|
@@ -38,7 +38,7 @@ include_once(MATH_CAPTCHA_PATH . 'includes/class-settings.php');
|
|
| 38 |
* Math Captcha class.
|
| 39 |
*
|
| 40 |
* @class Math_Captcha
|
| 41 |
-
* @version 1.2.
|
| 42 |
*/
|
| 43 |
class Math_Captcha {
|
| 44 |
|
|
@@ -73,7 +73,7 @@ class Math_Captcha {
|
|
| 73 |
'deactivation_delete' => false,
|
| 74 |
'flush_rules' => false
|
| 75 |
),
|
| 76 |
-
'version' => '1.2.
|
| 77 |
);
|
| 78 |
|
| 79 |
public static function instance() {
|
| 2 |
/*
|
| 3 |
Plugin Name: Math Captcha
|
| 4 |
Description: Math Captcha is a <strong>100% effective CAPTCHA for WordPress</strong> that integrates into login, registration, comments, Contact Form 7 and bbPress.
|
| 5 |
+
Version: 1.2.10
|
| 6 |
Author: dFactory
|
| 7 |
Author URI: http://www.dfactory.eu/
|
| 8 |
Plugin URI: http://www.dfactory.eu/plugins/math-captcha/
|
| 38 |
* Math Captcha class.
|
| 39 |
*
|
| 40 |
* @class Math_Captcha
|
| 41 |
+
* @version 1.2.10
|
| 42 |
*/
|
| 43 |
class Math_Captcha {
|
| 44 |
|
| 73 |
'deactivation_delete' => false,
|
| 74 |
'flush_rules' => false
|
| 75 |
),
|
| 76 |
+
'version' => '1.2.10'
|
| 77 |
);
|
| 78 |
|
| 79 |
public static function instance() {
|
