Contact Form by Supsystic - Version 1.4.6

Version Description

/ 07.05.2018 = * Fixed plugin activating for multisite * Conditional Logic - add ability to set condition depending on is user logged in or not * Fix issue with Conditional Logic and it's Send To option * Fix issue with duplicating Fields in Conditional Logic selection * Fix issue with slow (sometimes) loading of Google Re-Captcha scripts

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Contact Form by Supsystic
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.6

Files changed (5) hide show
  1. cfs.php +1 -1
  2. classes/utils.php +9 -6
  3. config.php +1 -1
  4. js/google.recaptcha.js +2 -2
  5. readme.txt +13 -1
cfs.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Contact Form by Supsystic
4
  * Description: Contact Form Builder with drag-and-drop editor to create responsive, mobile ready contact forms in a second. Custom fields and contact form templates
5
- * Version: 1.4.4
6
  * Author: supsystic.com
7
  * Author URI: https://supsystic.com
8
  **/
2
  /**
3
  * Plugin Name: Contact Form by Supsystic
4
  * Description: Contact Form Builder with drag-and-drop editor to create responsive, mobile ready contact forms in a second. Custom fields and contact form templates
5
+ * Version: 1.4.6
6
  * Author: supsystic.com
7
  * Author URI: https://supsystic.com
8
  **/
classes/utils.php CHANGED
@@ -327,14 +327,15 @@ class utilsCfs {
327
  add_action('activated_plugin', array(frameCfs::_(), 'savePluginActivationErrors'));
328
  }
329
  if (function_exists('is_multisite') && is_multisite()) {
330
- $orig_id = $wpdb->blogid;
331
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
332
  foreach ($blog_id as $id) {
333
  if (switch_to_blog($id)) {
334
  installerCfs::init();
335
  }
336
  }
337
- switch_to_blog($orig_id);
 
338
  return;
339
  } else {
340
  installerCfs::init();
@@ -349,14 +350,15 @@ class utilsCfs {
349
  static public function deletePlugin() {
350
  global $wpdb;
351
  if (function_exists('is_multisite') && is_multisite()) {
352
- $orig_id = $wpdb->blogid;
353
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
354
  foreach ($blog_id as $id) {
355
  if (switch_to_blog($id)) {
356
  installerCfs::delete();
357
  }
358
  }
359
- switch_to_blog($orig_id);
 
360
  return;
361
  } else {
362
  installerCfs::delete();
@@ -365,14 +367,15 @@ class utilsCfs {
365
  static public function deactivatePlugin() {
366
  global $wpdb;
367
  if (function_exists('is_multisite') && is_multisite()) {
368
- $orig_id = $wpdb->blogid;
369
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
370
  foreach ($blog_id as $id) {
371
  if (switch_to_blog($id)) {
372
  installerCfs::deactivate();
373
  }
374
  }
375
- switch_to_blog($orig_id);
 
376
  return;
377
  } else {
378
  installerCfs::deactivate();
327
  add_action('activated_plugin', array(frameCfs::_(), 'savePluginActivationErrors'));
328
  }
329
  if (function_exists('is_multisite') && is_multisite()) {
330
+ // $orig_id = $wpdb->blogid;
331
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
332
  foreach ($blog_id as $id) {
333
  if (switch_to_blog($id)) {
334
  installerCfs::init();
335
  }
336
  }
337
+ restore_current_blog();
338
+ // switch_to_blog($orig_id);
339
  return;
340
  } else {
341
  installerCfs::init();
350
  static public function deletePlugin() {
351
  global $wpdb;
352
  if (function_exists('is_multisite') && is_multisite()) {
353
+ // $orig_id = $wpdb->blogid;
354
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
355
  foreach ($blog_id as $id) {
356
  if (switch_to_blog($id)) {
357
  installerCfs::delete();
358
  }
359
  }
360
+ restore_current_blog();
361
+ // switch_to_blog($orig_id);
362
  return;
363
  } else {
364
  installerCfs::delete();
367
  static public function deactivatePlugin() {
368
  global $wpdb;
369
  if (function_exists('is_multisite') && is_multisite()) {
370
+ // $orig_id = $wpdb->blogid;
371
  $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
372
  foreach ($blog_id as $id) {
373
  if (switch_to_blog($id)) {
374
  installerCfs::deactivate();
375
  }
376
  }
377
+ restore_current_blog();
378
+ // switch_to_blog($orig_id);
379
  return;
380
  } else {
381
  installerCfs::deactivate();
config.php CHANGED
@@ -48,7 +48,7 @@
48
  define('CFS_EOL', "\n");
49
 
50
  define('CFS_PLUGIN_INSTALLED', true);
51
- define('CFS_VERSION', '1.4.4');
52
  define('CFS_USER', 'user');
53
 
54
  define('CFS_CLASS_PREFIX', 'cfsc');
48
  define('CFS_EOL', "\n");
49
 
50
  define('CFS_PLUGIN_INSTALLED', true);
51
+ define('CFS_VERSION', '1.4.6');
52
  define('CFS_USER', 'user');
53
 
54
  define('CFS_CLASS_PREFIX', 'cfsc');
js/google.recaptcha.js CHANGED
@@ -3,7 +3,7 @@ jQuery(document).ready(function(){
3
  //cfsInitCaptcha();
4
  });
5
  function cfsInitCaptcha( $elements ) {
6
- if(typeof(grecaptcha) === 'undefined') {
7
  // We set this function to be returned when google api loaded - onload=cfsInitCaptcha
8
  /*setTimeout(function(){
9
  cfsInitCaptcha( $elements );
@@ -14,7 +14,7 @@ function cfsInitCaptcha( $elements ) {
14
  if($elements && $elements.size()) {
15
  $elements.each(function(){
16
  var $this = jQuery(this);
17
- if(!$this.data('recaptcha-widget-id')) {
18
  var dataForInit = {}
19
  , elementData = $this.data()
20
  , elementId = $this.attr('id');
3
  //cfsInitCaptcha();
4
  });
5
  function cfsInitCaptcha( $elements ) {
6
+ if(typeof(grecaptcha) === 'undefined' || typeof(grecaptcha.render) === 'undefined') {
7
  // We set this function to be returned when google api loaded - onload=cfsInitCaptcha
8
  /*setTimeout(function(){
9
  cfsInitCaptcha( $elements );
14
  if($elements && $elements.size()) {
15
  $elements.each(function(){
16
  var $this = jQuery(this);
17
+ if(typeof $this.data('recaptcha-widget-id') == 'undefined') {
18
  var dataForInit = {}
19
  , elementData = $this.data()
20
  , elementId = $this.attr('id');
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: supsystic.com
3
  Tags: captcha, contact, contact form, contact form builder, contact form maker, contact form manager, contact form plugin, contact forms, contact us, custom form, feedback form, form, forms, forms creator, forms plugin, survey, quiz, subscription form, popup form
4
  Tested up to: 4.9.5
5
- Stable tag: 1.4.4
6
 
7
  Contact Form Builder with drag-and-drop editor to create responsive, mobile ready contact forms in a second. Custom fields and contact form templates
8
 
@@ -152,6 +152,18 @@ Using Contact Form plugin on your WordPress site you start a really responsive b
152
 
153
  == Changelog ==
154
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  = 1.4.4 / 17.04.2018 =
156
  * Fix conflict with PopUp plugin
157
  * Minor issues fixed
2
  Contributors: supsystic.com
3
  Tags: captcha, contact, contact form, contact form builder, contact form maker, contact form manager, contact form plugin, contact forms, contact us, custom form, feedback form, form, forms, forms creator, forms plugin, survey, quiz, subscription form, popup form
4
  Tested up to: 4.9.5
5
+ Stable tag: 1.4.6
6
 
7
  Contact Form Builder with drag-and-drop editor to create responsive, mobile ready contact forms in a second. Custom fields and contact form templates
8
 
152
 
153
  == Changelog ==
154
 
155
+ = 1.4.6 / 07.05.2018 =
156
+ * Fixed plugin activating for multisite
157
+ * Conditional Logic - add ability to set condition depending on is user logged in or not
158
+ * Fix issue with Conditional Logic and it's Send To option
159
+ * Fix issue with duplicating Fields in Conditional Logic selection
160
+ * Fix issue with slow (sometimes) loading of Google Re-Captcha scripts
161
+
162
+ = 1.4.5 / 25.04.2018 =
163
+ * Minor issue fix for work with Terms in Forms
164
+ * Possibility to edit and remove New Subscriber admin notification on Subscription
165
+ * Code review
166
+
167
  = 1.4.4 / 17.04.2018 =
168
  * Fix conflict with PopUp plugin
169
  * Minor issues fixed