Contact Form 7 add confirm - Version 1.3.9.4

Version Description

Download this release

Release Info

Developer Yuichiro ABE
Plugin Icon wp plugin Contact Form 7 add confirm
Version 1.3.9.4
Comparing to
See all releases

Code changes from version 1.3.9.3 to 1.3.9.4

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-confirm
9
  Domain Path: /languages/
10
- Version: 1.3.9.3
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
@@ -44,7 +44,7 @@ Version: 1.3.9.3
44
   戻って編集ボタンのデフォルトテキストが英語だった件を修正
45
  以降、readme.txtに記述
46
  */
47
- define( 'WPCF7C_VERSION', '1.3.9.3' );
48
 
49
  if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
50
  define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
7
  Author URI: http://www.eyeta.jp/
8
  Text Domain: contact-form-7-confirm
9
  Domain Path: /languages/
10
+ Version: 1.3.9.4
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
44
   戻って編集ボタンのデフォルトテキストが英語だった件を修正
45
  以降、readme.txtに記述
46
  */
47
+ define( 'WPCF7C_VERSION', '1.3.9.4' );
48
 
49
  if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
50
  define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
includes/controller.php CHANGED
@@ -42,17 +42,25 @@ function wpcf7c_ajax_json_echo() {
42
  // Contact Form DB対策
43
  //remove_action( 'wpcf7_before_send_mail', 'wpcf7_flamingo_submit');
44
  global $wp_filter, $merged_filters;
 
 
45
  if($wp_filter["wpcf7_before_send_mail"]) {
46
  foreach($wp_filter["wpcf7_before_send_mail"] as $priority => $actions) {
47
  foreach($actions as $key => $action) {
48
  if(is_array($action["function"])) {
49
  if(is_object($action["function"][0])) {
50
  if(get_class($action["function"][0]) == "CF7DBPlugin") {
 
51
  if($action["function"][1] == "saveFormData") {
52
  unset($wp_filter["wpcf7_before_send_mail"][$priority][$key]);
53
  if ( empty($wp_filter["wpcf7_before_send_mail"][$priority]) )
54
  unset($wp_filter["wpcf7_before_send_mail"][$priority]);
55
  unset($merged_filters["wpcf7_before_send_mail"]);
 
 
 
 
 
56
  }
57
  }
58
  }
42
  // Contact Form DB対策
43
  //remove_action( 'wpcf7_before_send_mail', 'wpcf7_flamingo_submit');
44
  global $wp_filter, $merged_filters;
45
+
46
+ //error_log(print_r($wp_filter, true));
47
  if($wp_filter["wpcf7_before_send_mail"]) {
48
  foreach($wp_filter["wpcf7_before_send_mail"] as $priority => $actions) {
49
  foreach($actions as $key => $action) {
50
  if(is_array($action["function"])) {
51
  if(is_object($action["function"][0])) {
52
  if(get_class($action["function"][0]) == "CF7DBPlugin") {
53
+ error_log(print_r($action, true));
54
  if($action["function"][1] == "saveFormData") {
55
  unset($wp_filter["wpcf7_before_send_mail"][$priority][$key]);
56
  if ( empty($wp_filter["wpcf7_before_send_mail"][$priority]) )
57
  unset($wp_filter["wpcf7_before_send_mail"][$priority]);
58
  unset($merged_filters["wpcf7_before_send_mail"]);
59
+ } else if($action["function"][1] == "saveCF7FormData") {
60
+ unset($wp_filter["wpcf7_before_send_mail"][$priority][$key]);
61
+ if ( empty($wp_filter["wpcf7_before_send_mail"][$priority]) )
62
+ unset($wp_filter["wpcf7_before_send_mail"][$priority]);
63
+ unset($merged_filters["wpcf7_before_send_mail"]);
64
  }
65
  }
66
  }
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.0
7
- Stable tag: 1.3.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -85,8 +85,10 @@ An answer to that question.
85
  WordPress4.0
86
  Contact Form 7 3.9.2に対応
87
 
 
 
 
88
  == Upgrade notice ==
89
- 1.3.9.3
90
- WordPress4.0
91
- Contact Form 7 3.9.2に対応
92
 
4
  Tags: contact, form, contact form
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.3.9.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
85
  WordPress4.0
86
  Contact Form 7 3.9.2に対応
87
 
88
+ 1.3.9.4
89
+ Contact Form DB 2.8.2以上に対応
90
+
91
  == Upgrade notice ==
92
+ 1.3.9.4
93
+ Contact Form DB 2.8.2以上に対応
 
94