Contact Form Email - Version 1.2.65

Version Description

  • Fixed conflict with third party plugins
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.65
Comparing to
See all releases

Code changes from version 1.2.64 to 1.2.65

Files changed (2) hide show
  1. README.txt +5 -2
  2. form-to-email.php +15 -3
README.txt CHANGED
@@ -454,6 +454,9 @@ When you click a field already added into the contact form builder area, you can
454
 
455
  == Changelog ==
456
 
 
 
 
457
  = 1.2.64 =
458
  * Added publishing wizard
459
 
@@ -953,5 +956,5 @@ When you click a field already added into the contact form builder area, you can
953
 
954
  == Upgrade Notice ==
955
 
956
- = 1.2.64 =
957
- * Added publishing wizard
454
 
455
  == Changelog ==
456
 
457
+ = 1.2.65 =
458
+ * Fixed conflict with third party plugins
459
+
460
  = 1.2.64 =
461
  * Added publishing wizard
462
 
956
 
957
  == Upgrade Notice ==
958
 
959
+ = 1.2.65 =
960
+ * Fixed conflict with third party plugins
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.64
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
@@ -88,8 +88,8 @@ if ( is_admin() ) {
88
  add_action('admin_enqueue_scripts', array($cp_cfte_plugin,'insert_adminScripts'), 1);
89
  add_filter("plugin_action_links_".plugin_basename(__FILE__), array($cp_cfte_plugin,'plugin_page_links'));
90
  add_action('admin_menu', array($cp_cfte_plugin,'admin_menu') );
91
- add_action( 'init', array($cp_cfte_plugin,'gutenberg_block') );
92
- add_action( 'wp_loaded', array($cp_cfte_plugin, 'data_management_loaded'));
93
  } else {
94
  add_shortcode( $cp_cfte_plugin->shorttag, array($cp_cfte_plugin, 'filter_content') );
95
  }
@@ -104,4 +104,16 @@ require_once 'bannerdk.php';
104
  // optional opt-in deactivation feedback
105
  require_once 'cp-feedback.php';
106
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  ?>
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.65
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
88
  add_action('admin_enqueue_scripts', array($cp_cfte_plugin,'insert_adminScripts'), 1);
89
  add_filter("plugin_action_links_".plugin_basename(__FILE__), array($cp_cfte_plugin,'plugin_page_links'));
90
  add_action('admin_menu', array($cp_cfte_plugin,'admin_menu') );
91
+ add_action('init', array($cp_cfte_plugin,'gutenberg_block') );
92
+ add_action('wp_loaded', array($cp_cfte_plugin, 'data_management_loaded') );
93
  } else {
94
  add_shortcode( $cp_cfte_plugin->shorttag, array($cp_cfte_plugin, 'filter_content') );
95
  }
104
  // optional opt-in deactivation feedback
105
  require_once 'cp-feedback.php';
106
 
107
+ // code for compatibility with third party scripts
108
+ add_filter('option_sbp_settings', 'cpcfte_sbp_fix_conflict' );
109
+ function cpcfte_sbp_fix_conflict($option)
110
+ {
111
+ if(!is_admin())
112
+ {
113
+ if(is_array($option) && isset($option['jquery_to_footer']))
114
+ unset($option['jquery_to_footer']);
115
+ }
116
+ return $option;
117
+ }
118
+
119
  ?>