Version Description
Download this release
Release Info
Developer | Yuichiro ABE |
Plugin | Contact Form 7 add confirm |
Version | 4.6.2 |
Comparing to | |
See all releases |
Code changes from version 4.6.1 to 4.6.2
- contact-form-7-confirm.php +2 -2
- includes/controller.php +6 -2
- modules/back.php +5 -1
- modules/confirm.php +5 -1
- readme.txt +6 -2
contact-form-7-confirm.php
CHANGED
@@ -7,7 +7,7 @@ Author: Yuichiro ABE
|
|
7 |
Author URI: http://www.eyeta.jp/
|
8 |
Text Domain: contact-form-7-add-confirm
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 4.6.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
@@ -28,7 +28,7 @@ Version: 4.6.1
|
|
28 |
*/
|
29 |
|
30 |
|
31 |
-
define( 'WPCF7C_VERSION', '4.6.
|
32 |
|
33 |
if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
|
34 |
define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
7 |
Author URI: http://www.eyeta.jp/
|
8 |
Text Domain: contact-form-7-add-confirm
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 4.6.2
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
28 |
*/
|
29 |
|
30 |
|
31 |
+
define( 'WPCF7C_VERSION', '4.6.2' );
|
32 |
|
33 |
if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
|
34 |
define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
includes/controller.php
CHANGED
@@ -41,7 +41,7 @@ function wpcf7c_ajax_json_echo() {
|
|
41 |
// $result = apply_filters( 'wpcf7_before_send_mail', $result );
|
42 |
if ( WPCF7_VERSION == '3.9' || WPCF7_VERSION == '3.9.1' ) {
|
43 |
add_filter( 'wpcf7_acceptance', 'wpcf7c_acceptance_filter', 11, 1 );
|
44 |
-
} else if ( WPCF7_VERSION
|
45 |
add_filter( "wpcf7_skip_mail", '__return_true', 10, 2 );
|
46 |
} else {
|
47 |
add_action( "wpcf7_before_send_mail", "wpcf7c_before_send_mail_step1", 10, 2 );
|
@@ -249,7 +249,11 @@ function wpcf7c_ajax_json_echo_step1( $items, $result ) {
|
|
249 |
*/
|
250 |
|
251 |
function wpcf7c_captcha_validation_filter( $result, $tag ) {
|
252 |
-
|
|
|
|
|
|
|
|
|
253 |
|
254 |
$type = $tag->type;
|
255 |
$name = $tag->name;
|
41 |
// $result = apply_filters( 'wpcf7_before_send_mail', $result );
|
42 |
if ( WPCF7_VERSION == '3.9' || WPCF7_VERSION == '3.9.1' ) {
|
43 |
add_filter( 'wpcf7_acceptance', 'wpcf7c_acceptance_filter', 11, 1 );
|
44 |
+
} else if ( version_compare(WPCF7_VERSION, "3.9.2", ">=") ) {
|
45 |
add_filter( "wpcf7_skip_mail", '__return_true', 10, 2 );
|
46 |
} else {
|
47 |
add_action( "wpcf7_before_send_mail", "wpcf7c_before_send_mail_step1", 10, 2 );
|
249 |
*/
|
250 |
|
251 |
function wpcf7c_captcha_validation_filter( $result, $tag ) {
|
252 |
+
if ( version_compare(WPCF7_VERSION, "4.6", ">=") ) {
|
253 |
+
$tag = new WPCF7_FormTag( $tag );
|
254 |
+
} else {
|
255 |
+
$tag = new WPCF7_Shortcode( $tag );
|
256 |
+
}
|
257 |
|
258 |
$type = $tag->type;
|
259 |
$name = $tag->name;
|
modules/back.php
CHANGED
@@ -20,7 +20,11 @@ function wpcf7c_add_shortcode_back() {
|
|
20 |
}
|
21 |
|
22 |
function wpcf7c_back_shortcode_handler( $tag ) {
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
|
25 |
$class = wpcf7_form_controls_class( $tag->type );
|
26 |
|
20 |
}
|
21 |
|
22 |
function wpcf7c_back_shortcode_handler( $tag ) {
|
23 |
+
if ( version_compare(WPCF7_VERSION, "4.6", ">=") ) {
|
24 |
+
$tag = new WPCF7_FormTag( $tag );
|
25 |
+
} else {
|
26 |
+
$tag = new WPCF7_Shortcode( $tag );
|
27 |
+
}
|
28 |
|
29 |
$class = wpcf7_form_controls_class( $tag->type );
|
30 |
|
modules/confirm.php
CHANGED
@@ -16,7 +16,11 @@ function wpcf7c_add_shortcode_confirm() {
|
|
16 |
}
|
17 |
|
18 |
function wpcf7c_confirm_shortcode_handler( $tag ) {
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
|
21 |
$class = wpcf7_form_controls_class( $tag->type );
|
22 |
|
16 |
}
|
17 |
|
18 |
function wpcf7c_confirm_shortcode_handler( $tag ) {
|
19 |
+
if ( version_compare(WPCF7_VERSION, "4.6", ">=") ) {
|
20 |
+
$tag = new WPCF7_FormTag( $tag );
|
21 |
+
} else {
|
22 |
+
$tag = new WPCF7_Shortcode( $tag );
|
23 |
+
}
|
24 |
|
25 |
$class = wpcf7_form_controls_class( $tag->type );
|
26 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: contact, form, contact form
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 4.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Text Domain: contact-form-7-add-confirm
|
@@ -133,7 +133,11 @@ An answer to that question.
|
|
133 |
4.6
|
134 |
WordPress4.7対応
|
135 |
|
136 |
-
== Upgrade notice ==
|
137 |
4.6.1
|
138 |
Contact Form 7 ver.4.6に対応し
|
139 |
wpcf7_add_form_tag関数に対応
|
|
|
|
|
|
|
|
|
|
4 |
Tags: contact, form, contact form
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 4.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Text Domain: contact-form-7-add-confirm
|
133 |
4.6
|
134 |
WordPress4.7対応
|
135 |
|
|
|
136 |
4.6.1
|
137 |
Contact Form 7 ver.4.6に対応し
|
138 |
wpcf7_add_form_tag関数に対応
|
139 |
+
|
140 |
+
== Upgrade notice ==
|
141 |
+
4.6.2
|
142 |
+
Contact Form 7 ver.4.6に対応し
|
143 |
+
WPCF7_FormTagに対応
|