Version Description
Fix bug where referer URL was not compatible with certain permalink structures
Download this release
Release Info
Developer | mmuro |
Plugin | Visual Form Builder |
Version | 2.7.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.2 to 2.7.3
- includes/email.php +2 -2
- includes/form-output.php +3 -3
- readme.txt +8 -1
- visual-form-builder.php +2 -2
includes/email.php
CHANGED
@@ -4,8 +4,8 @@ global $wpdb, $post;
|
|
4 |
$required = ( isset( $_REQUEST['_vfb-required-secret'] ) && $_REQUEST['_vfb-required-secret'] == '0' ) ? false : true;
|
5 |
$secret_field = ( isset( $_REQUEST['_vfb-secret'] ) ) ? $_REQUEST['_vfb-secret'] : '';
|
6 |
$honeypot = ( isset( $_REQUEST['vfb-spam'] ) ) ? $_REQUEST['vfb-spam'] : '';
|
7 |
-
$referrer = ( isset( $_REQUEST['vfb_referral_url'] ) ) ?
|
8 |
-
$wp_get_referer =
|
9 |
|
10 |
// If the verification is set to required, run validation check
|
11 |
if ( true == $required && !empty( $secret_field ) ) {
|
4 |
$required = ( isset( $_REQUEST['_vfb-required-secret'] ) && $_REQUEST['_vfb-required-secret'] == '0' ) ? false : true;
|
5 |
$secret_field = ( isset( $_REQUEST['_vfb-secret'] ) ) ? $_REQUEST['_vfb-secret'] : '';
|
6 |
$honeypot = ( isset( $_REQUEST['vfb-spam'] ) ) ? $_REQUEST['vfb-spam'] : '';
|
7 |
+
$referrer = ( isset( $_REQUEST['vfb_referral_url'] ) ) ? $_REQUEST['vfb_referral_url'] : false;
|
8 |
+
$wp_get_referer = wp_get_referer();
|
9 |
|
10 |
// If the verification is set to required, run validation check
|
11 |
if ( true == $required && !empty( $secret_field ) ) {
|
includes/form-output.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
if ( !defined( 'DONOTCACHEPAGE' ) )
|
4 |
define( 'DONOTCACHEPAGE', true );
|
5 |
|
6 |
-
global $wpdb
|
7 |
|
8 |
// Extract shortcode attributes, set defaults
|
9 |
extract( shortcode_atts( array(
|
@@ -43,7 +43,7 @@ $submit = 'Submit';
|
|
43 |
$verification = '';
|
44 |
|
45 |
// Current URL
|
46 |
-
$current_url =
|
47 |
|
48 |
$label_alignment = ( $form->form_label_alignment !== '' ) ? " $form->form_label_alignment" : '';
|
49 |
$output = '<div class="visual-form-builder-container"><form id="' . $form->form_key . '" class="visual-form-builder' . $label_alignment . '" method="post" 46="multipart/form-data">
|
@@ -573,7 +573,7 @@ $output .= sprintf(
|
|
573 |
$submit
|
574 |
);
|
575 |
|
576 |
-
$output .= sprintf( '<input type="hidden" name="vfb_referral_url" value="%s">',
|
577 |
|
578 |
// Close the form out
|
579 |
$output .= '</form>';
|
3 |
if ( !defined( 'DONOTCACHEPAGE' ) )
|
4 |
define( 'DONOTCACHEPAGE', true );
|
5 |
|
6 |
+
global $wpdb;
|
7 |
|
8 |
// Extract shortcode attributes, set defaults
|
9 |
extract( shortcode_atts( array(
|
43 |
$verification = '';
|
44 |
|
45 |
// Current URL
|
46 |
+
$current_url = 'http'. ( empty( $_SERVER['HTTPS'] ) ? '' : 's' ) . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
47 |
|
48 |
$label_alignment = ( $form->form_label_alignment !== '' ) ? " $form->form_label_alignment" : '';
|
49 |
$output = '<div class="visual-form-builder-container"><form id="' . $form->form_key . '" class="visual-form-builder' . $label_alignment . '" method="post" 46="multipart/form-data">
|
573 |
$submit
|
574 |
);
|
575 |
|
576 |
+
$output .= sprintf( '<input type="hidden" name="vfb_referral_url" value="%s">', $current_url );
|
577 |
|
578 |
// Close the form out
|
579 |
$output .= '</form>';
|
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.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
|
@@ -225,6 +225,10 @@ function my_scripts_method() {
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
228 |
**Version 2.7.2 — May 05, 2013**
|
229 |
|
230 |
* Add form search in admin
|
@@ -519,6 +523,9 @@ function my_scripts_method() {
|
|
519 |
|
520 |
== Upgrade Notice ==
|
521 |
|
|
|
|
|
|
|
522 |
= 2.7.2 =
|
523 |
Add 'Pages to Export' option. Update plugin to require WordPress 3.5 and jQuery UI 1.9
|
524 |
|
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.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
**Version 2.7.3 — May 07, 2013**
|
229 |
+
|
230 |
+
* Fix bug where referer URL was not compatible with certain permalink structures
|
231 |
+
|
232 |
**Version 2.7.2 — May 05, 2013**
|
233 |
|
234 |
* Add form search in admin
|
523 |
|
524 |
== Upgrade Notice ==
|
525 |
|
526 |
+
= 2.7.3 =
|
527 |
+
Fix bug where referer URL was not compatible with certain permalink structures
|
528 |
+
|
529 |
= 2.7.2 =
|
530 |
Add 'Pages to Export' option. Update plugin to require WordPress 3.5 and jQuery UI 1.9
|
531 |
|
visual-form-builder.php
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
*/
|
9 |
|
10 |
/*
|
@@ -1805,7 +1805,7 @@ class Visual_Form_Builder{
|
|
1805 |
<div class="vfb-pro-upgrade">
|
1806 |
<h2><a href="http://vfb.matthewmuro.com">Visual Form Builder Pro</a></h2>
|
1807 |
<p class="vfb-pro-call-to-action">
|
1808 |
-
<a class="vfb-btn vfb-btn-primary" href="http://
|
1809 |
</p>
|
1810 |
<h3><?php _e( 'New Features' , 'visual-form-builder'); ?></h3>
|
1811 |
<ul>
|
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.3
|
8 |
*/
|
9 |
|
10 |
/*
|
1805 |
<div class="vfb-pro-upgrade">
|
1806 |
<h2><a href="http://vfb.matthewmuro.com">Visual Form Builder Pro</a></h2>
|
1807 |
<p class="vfb-pro-call-to-action">
|
1808 |
+
<a class="vfb-btn vfb-btn-primary" href="http://visualformbuilder.fetchapp.com/sell/dahdaeng/ppc"><?php _e( 'Buy Now' , 'visual-form-builder'); ?></a>
|
1809 |
</p>
|
1810 |
<h3><?php _e( 'New Features' , 'visual-form-builder'); ?></h3>
|
1811 |
<ul>
|