Visual Form Builder - Version 2.7.7

Version Description

Fix bug where confirmation function fails

Download this release

Release Info

Developer mmuro
Plugin Icon 128x128 Visual Form Builder
Version 2.7.7
Comparing to
See all releases

Code changes from version 2.7.6 to 2.7.7

Files changed (2) hide show
  1. readme.txt +8 -1
  2. visual-form-builder.php +25 -24
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=G87A9
4
  Tags: form, forms, contact form, contact forms, form, forms, form to email, email form, email, input, validation, jquery, shortcode, form builder, contact form builder, form manager, form creator
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
- Stable tag: 2.7.6
8
  License: GPLv2 or later
9
 
10
  Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
@@ -231,6 +231,10 @@ function my_scripts_method() {
231
 
232
  == Changelog ==
233
 
 
 
 
 
234
  **Version 2.7.6 — Jul 16, 2013**
235
 
236
  * Add sorting to checkbox/radio/select options
@@ -571,6 +575,9 @@ function my_scripts_method() {
571
 
572
  == Upgrade Notice ==
573
 
 
 
 
574
  = 2.7.6 =
575
  Add sorting to checkbox/radio/select options. Update interface icons. Bug fixes.
576
 
4
  Tags: form, forms, contact form, contact forms, form, forms, form to email, email form, email, input, validation, jquery, shortcode, form builder, contact form builder, form manager, form creator
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
+ Stable tag: 2.7.7
8
  License: GPLv2 or later
9
 
10
  Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
231
 
232
  == Changelog ==
233
 
234
+ **Version 2.7.7 — Jul 16, 2013**
235
+
236
+ * Fix bug where confirmation function fails
237
+
238
  **Version 2.7.6 — Jul 16, 2013**
239
 
240
  * Add sorting to checkbox/radio/select options
575
 
576
  == Upgrade Notice ==
577
 
578
+ = 2.7.7 =
579
+ Fix bug where confirmation function fails
580
+
581
  = 2.7.6 =
582
  Add sorting to checkbox/radio/select options. Update interface icons. Bug fixes.
583
 
visual-form-builder.php CHANGED
@@ -4,11 +4,11 @@ Plugin Name: Visual Form Builder
4
  Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
5
  Author: Matthew Muro
6
  Author URI: http://matthewmuro.com
7
- Version: 2.7.6
8
  */
9
 
10
  // Version number to output as meta tag
11
- define( 'VFB_VERSION', '2.7.6' );
12
 
13
  /*
14
  This program is free software; you can redistribute it and/or modify
@@ -1546,28 +1546,29 @@ class Visual_Form_Builder{
1546
 
1547
  $form_id = ( isset( $_REQUEST['form_id'] ) ) ? (int) esc_html( $_REQUEST['form_id'] ) : '';
1548
 
1549
- if ( isset( $_REQUEST['visual-form-builder-submit'] ) ) :
1550
- // Get forms
1551
- $order = sanitize_sql_orderby( 'form_id DESC' );
1552
- $forms = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $this->form_table_name WHERE form_id = %d ORDER BY $order", $form_id ) );
1553
-
1554
- foreach ( $forms as $form ) :
1555
- // If text, return output and format the HTML for display
1556
- if ( 'text' == $form->form_success_type )
1557
- return stripslashes( html_entity_decode( wp_kses_stripslashes( $form->form_success_message ) ) );
1558
- // If page, redirect to the permalink
1559
- elseif ( 'page' == $form->form_success_type ) {
1560
- $page = get_permalink( $form->form_success_message );
1561
- wp_redirect( $page );
1562
- exit();
1563
- }
1564
- // If redirect, redirect to the URL
1565
- elseif ( 'redirect' == $form->form_success_type ) {
1566
- wp_redirect( esc_url( $form->form_success_message ) );
1567
- exit();
1568
- }
1569
- endforeach;
1570
- endif;
 
1571
  }
1572
 
1573
  /**
4
  Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
5
  Author: Matthew Muro
6
  Author URI: http://matthewmuro.com
7
+ Version: 2.7.7
8
  */
9
 
10
  // Version number to output as meta tag
11
+ define( 'VFB_VERSION', '2.7.7' );
12
 
13
  /*
14
  This program is free software; you can redistribute it and/or modify
1546
 
1547
  $form_id = ( isset( $_REQUEST['form_id'] ) ) ? (int) esc_html( $_REQUEST['form_id'] ) : '';
1548
 
1549
+ if ( !isset( $_REQUEST['vfb-submit'] ) )
1550
+ return;
1551
+
1552
+ // Get forms
1553
+ $order = sanitize_sql_orderby( 'form_id DESC' );
1554
+ $forms = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $this->form_table_name WHERE form_id = %d ORDER BY $order", $form_id ) );
1555
+
1556
+ foreach ( $forms as $form ) :
1557
+ // If text, return output and format the HTML for display
1558
+ if ( 'text' == $form->form_success_type )
1559
+ return stripslashes( html_entity_decode( wp_kses_stripslashes( $form->form_success_message ) ) );
1560
+ // If page, redirect to the permalink
1561
+ elseif ( 'page' == $form->form_success_type ) {
1562
+ $page = get_permalink( $form->form_success_message );
1563
+ wp_redirect( $page );
1564
+ exit();
1565
+ }
1566
+ // If redirect, redirect to the URL
1567
+ elseif ( 'redirect' == $form->form_success_type ) {
1568
+ wp_redirect( esc_url( $form->form_success_message ) );
1569
+ exit();
1570
+ }
1571
+ endforeach;
1572
  }
1573
 
1574
  /**