Custom Contact Forms - Version 3.5.4

Version Description

  • custom-contact-forms.php - custom thank you redirect fix
  • custom-contact-forms-db.php - Style insert bug fixed, Unexpected header output bug fixed
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 3.5.4
Comparing to
See all releases

Code changes from version 3.5.3 to 3.5.4

custom-contact-forms-db.php CHANGED
@@ -103,7 +103,6 @@ if (!class_exists('CustomContactFormsDB')) {
103
 
104
  function updateTables() {
105
  global $wpdb;
106
- $wpdb->show_errors();
107
  if (!$this->columnExists('user_field', $this->fields_table))
108
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `user_field` INT( 1 ) NOT NULL DEFAULT '1'");
109
  if (!$this->columnExists('form_style', $this->forms_table))
@@ -150,8 +149,6 @@ if (!class_exists('CustomContactFormsDB')) {
150
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_options` VARCHAR( 300 ) NOT NULL");
151
  if (!$this->columnExists('field_required', $this->fields_table))
152
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_required` INT( 1 ) NOT NULL DEFAULT '0'");
153
- $wpdb->show_errors();
154
- $wpdb->print_error();
155
  }
156
 
157
  function insertFixedFields() {
@@ -205,7 +202,6 @@ if (!class_exists('CustomContactFormsDB')) {
205
 
206
  function insertStyle($style) {
207
  global $wpdb;
208
- $wpdb->show_errors();
209
  if (empty($style) or empty($style[style_slug]) or $this->styleSlugExists($this->formatSlug($style[style_slug]))) return false;
210
  $style[style_slug] = $this->formatSlug($style[style_slug]);
211
  foreach ($style as $key => $value) {
@@ -213,7 +209,6 @@ if (!class_exists('CustomContactFormsDB')) {
213
  $style[$key] = $this->formatStyle($this->encodeOption($value));
214
  }
215
  $wpdb->insert($this->styles_table, $style);
216
- $wpdb->print_error();
217
  return $wpdb->insert_id;
218
  }
219
 
103
 
104
  function updateTables() {
105
  global $wpdb;
 
106
  if (!$this->columnExists('user_field', $this->fields_table))
107
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `user_field` INT( 1 ) NOT NULL DEFAULT '1'");
108
  if (!$this->columnExists('form_style', $this->forms_table))
149
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_options` VARCHAR( 300 ) NOT NULL");
150
  if (!$this->columnExists('field_required', $this->fields_table))
151
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_required` INT( 1 ) NOT NULL DEFAULT '0'");
 
 
152
  }
153
 
154
  function insertFixedFields() {
202
 
203
  function insertStyle($style) {
204
  global $wpdb;
 
205
  if (empty($style) or empty($style[style_slug]) or $this->styleSlugExists($this->formatSlug($style[style_slug]))) return false;
206
  $style[style_slug] = $this->formatSlug($style[style_slug]);
207
  foreach ($style as $key => $value) {
209
  $style[$key] = $this->formatStyle($this->encodeOption($value));
210
  }
211
  $wpdb->insert($this->styles_table, $style);
 
212
  return $wpdb->insert_id;
213
  }
214
 
custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
6
- Version: 3.5.3
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
@@ -1493,6 +1493,7 @@ the field names you want required by commas. Remember to use underscores instead
1493
  $this->current_form = 0;
1494
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
1495
  }
 
1496
  } elseif ($_POST[customcontactforms_submit]) {
1497
  $this->startSession();
1498
  $this->error_return = $_POST[form_page];
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
6
+ Version: 3.5.4
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
1493
  $this->current_form = 0;
1494
  add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
1495
  }
1496
+ unset($_POST);
1497
  } elseif ($_POST[customcontactforms_submit]) {
1498
  $this->startSession();
1499
  $this->error_return = $_POST[form_page];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.0.1
7
- Stable tag: 3.5.3
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -76,6 +76,10 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
76
 
77
  == Changelog ==
78
 
 
 
 
 
79
  = 3.5.3 =
80
  * custom-contact-forms.php - Style popover height option added to style manager. Form title heading not shown if left blank.
81
  * custom-contact-forms-db.php - New success popover height column added to styles table
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.0.1
7
+ Stable tag: 3.5.4
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
76
 
77
  == Changelog ==
78
 
79
+ = 3.5.4 =
80
+ * custom-contact-forms.php - custom thank you redirect fix
81
+ * custom-contact-forms-db.php - Style insert bug fixed, Unexpected header output bug fixed
82
+
83
  = 3.5.3 =
84
  * custom-contact-forms.php - Style popover height option added to style manager. Form title heading not shown if left blank.
85
  * custom-contact-forms-db.php - New success popover height column added to styles table