Contact Form 7 add confirm - Version 4.3.2

Version Description

Download this release

Release Info

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

Code changes from version 4.3.1 to 4.3.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.3.1
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
@@ -28,7 +28,7 @@ Version: 4.3.1
28
  */
29
 
30
 
31
- define( 'WPCF7C_VERSION', '4.3.1' );
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.3.2
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
28
  */
29
 
30
 
31
+ define( 'WPCF7C_VERSION', '4.3.2' );
32
 
33
  if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
34
  define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
includes/controller.php CHANGED
@@ -10,6 +10,9 @@
10
 
11
  add_action( 'init', 'wpcf7c_control_init', 10 );
12
  function wpcf7c_control_init() {
 
 
 
13
 
14
  wpcf7c_ajax_json_echo();
15
 
@@ -23,6 +26,9 @@ function wpcf7c_control_init() {
23
  remove_filter( 'wpcf7_ajax_json_echo', 'wpcf7_quiz_ajax_refill' );
24
  }
25
 
 
 
 
26
 
27
  }
28
 
10
 
11
  add_action( 'init', 'wpcf7c_control_init', 10 );
12
  function wpcf7c_control_init() {
13
+ if(!class_exists('WPCF7_ContactForm')) {
14
+ return false;
15
+ }
16
 
17
  wpcf7c_ajax_json_echo();
18
 
26
  remove_filter( 'wpcf7_ajax_json_echo', 'wpcf7_quiz_ajax_refill' );
27
  }
28
 
29
+ add_filter('nocache_headers', "wpcf7c_nocache_headers", 10, 1);
30
+ add_action( 'wpcf7_enqueue_scripts', 'wpcf7c_enqueue_scripts' );
31
+ add_action( 'wpcf7_enqueue_styles', 'wpcf7c_enqueue_styles' );
32
 
33
  }
34
 
modules/back.php CHANGED
@@ -49,6 +49,9 @@ if(WPCF7_VERSION >= "4.2.0") {
49
  }
50
 
51
  function wpcf7c_add_tag_generator_back() {
 
 
 
52
  $tag_generator = WPCF7_TagGenerator::get_instance();
53
  $tag_generator->add( 'back', __( 'Back button', 'contact-form-7-add-confirm' ),
54
  'wpcf7c_tg_pane_back', array( 'nameless' => 1 ) );
49
  }
50
 
51
  function wpcf7c_add_tag_generator_back() {
52
+ if(!class_exists('WPCF7_TagGenerator')) {
53
+ return false;
54
+ }
55
  $tag_generator = WPCF7_TagGenerator::get_instance();
56
  $tag_generator->add( 'back', __( 'Back button', 'contact-form-7-add-confirm' ),
57
  'wpcf7c_tg_pane_back', array( 'nameless' => 1 ) );
modules/confirm.php CHANGED
@@ -47,6 +47,9 @@ if(WPCF7_VERSION >= "4.2.0") {
47
  }
48
 
49
  function wpcf7c_add_tag_generator_confirm() {
 
 
 
50
  $tag_generator = WPCF7_TagGenerator::get_instance();
51
  $tag_generator->add( 'confirm', __( 'Confirm button', 'contact-form-7-add-confirm' ),
52
  'wpcf7c_tg_pane_confirm', array( 'nameless' => 1 ) );
47
  }
48
 
49
  function wpcf7c_add_tag_generator_confirm() {
50
+ if(!class_exists('WPCF7_TagGenerator')) {
51
+ return false;
52
+ }
53
  $tag_generator = WPCF7_TagGenerator::get_instance();
54
  $tag_generator->add( 'confirm', __( 'Confirm button', 'contact-form-7-add-confirm' ),
55
  'wpcf7c_tg_pane_confirm', array( 'nameless' => 1 ) );
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.4
7
- Stable tag: 4.3.1
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
@@ -121,7 +121,8 @@ An answer to that question.
121
  4.2.1.1
122
  Contact Form 7 4.2より古いものと実行した場合の不具合を修正
123
 
124
- == Upgrade notice ==
125
-
126
  4.3.1
127
- Check at WordPress4.4
 
 
 
4
  Tags: contact, form, contact form
5
  Requires at least: 3.8
6
  Tested up to: 4.4
7
+ Stable tag: 4.3.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
121
  4.2.1.1
122
  Contact Form 7 4.2より古いものと実行した場合の不具合を修正
123
 
 
 
124
  4.3.1
125
+ Check at WordPress4.4
126
+ == Upgrade notice ==
127
+ 4.3.2
128
+ Contact Form 7がインストールされていないときに管理画面がおかしくなるバグを修正
settings.php CHANGED
@@ -22,7 +22,6 @@ function wpcf7c() {
22
  nocache_headers();
23
  }
24
 
25
- add_filter('nocache_headers', "wpcf7c_nocache_headers", 10, 1);
26
  function wpcf7c_nocache_headers($headers) {
27
 
28
  $headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0";
@@ -30,7 +29,6 @@ function wpcf7c_nocache_headers($headers) {
30
  return $headers;
31
  }
32
 
33
- add_action( 'wpcf7_enqueue_scripts', 'wpcf7c_enqueue_scripts' );
34
  function wpcf7c_enqueue_scripts() {
35
  $in_footer = true;
36
  if ( 'header' === WPCF7_LOAD_JS )
@@ -43,7 +41,6 @@ function wpcf7c_enqueue_scripts() {
43
  }
44
 
45
 
46
- add_action( 'wpcf7_enqueue_styles', 'wpcf7c_enqueue_styles' );
47
  function wpcf7c_enqueue_styles(){
48
  wp_enqueue_style( 'contact-form-7-confirm',
49
  wpcf7c_plugin_url( 'includes/css/styles.css' ),
22
  nocache_headers();
23
  }
24
 
 
25
  function wpcf7c_nocache_headers($headers) {
26
 
27
  $headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0";
29
  return $headers;
30
  }
31
 
 
32
  function wpcf7c_enqueue_scripts() {
33
  $in_footer = true;
34
  if ( 'header' === WPCF7_LOAD_JS )
41
  }
42
 
43
 
 
44
  function wpcf7c_enqueue_styles(){
45
  wp_enqueue_style( 'contact-form-7-confirm',
46
  wpcf7c_plugin_url( 'includes/css/styles.css' ),