Version Description
- Fixed a bug: Redirection for legacy browsers (non-ajax) not working when using external url.
Download this release
Release Info
Developer | yuvalsabar |
Plugin | Contact Form 7 Redirection |
Version | 1.3.6 |
Comparing to | |
See all releases |
Code changes from version 1.3.5 to 1.3.6
- readme.txt +8 -7
- wpcf7-redirect.php +11 -12
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Tags: contact form 7 redirect, contact form 7 thank you page, redirect cf7, redirect contact form 7, contact form 7 success page, cf7 redirect
|
3 |
Contributors: yuvalsabar
|
4 |
Requires at least: 4.7.0
|
5 |
-
Tested up to: 5.4
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -12,7 +12,7 @@ A simple add-on for Contact Form 7 that adds a redirect option after form sent s
|
|
12 |
== Description ==
|
13 |
|
14 |
A straightforward add-on plugin for Contact Form 7 - adds the option to redirect to any page you choose after mail sent successfully, with DOM Events and without AJAX being disabled.
|
15 |
-
NOTE: This plugin requires Contact Form 7 version 4.8 or later.
|
16 |
|
17 |
== Usage ==
|
18 |
|
@@ -25,6 +25,7 @@ Simply go to your form settings, choose the "Redirect Settings" tab and set the
|
|
25 |
* Run JavaScript after form submission (great for conversion management)
|
26 |
* Pass fields from the form as URL query parameters
|
27 |
|
|
|
28 |
* **[Pro]** Create registration forms
|
29 |
* **[Pro]** Create login forms
|
30 |
* **[Pro]** Add to Mailchimp list
|
@@ -61,7 +62,7 @@ No, it doesn't. The plugin does not disables any of Contact Form 7 normal behavi
|
|
61 |
|
62 |
= Does this plugin uses "on_sent_ok" additional setting? =
|
63 |
|
64 |
-
No. One of the reasons we developed this plugin, is because on_send_ok is now deprecated, and is going to be abolished by the end of 2017. This plugin is the only redirect plugin for Contact Form 7 that has been updated to use [DOM events](https://contactform7.com/dom-events/) to perform redirect, as Contact Form 7 developer Takayuki Miyoshi recommends.
|
65 |
|
66 |
== Screenshots ==
|
67 |
|
@@ -69,8 +70,8 @@ No. One of the reasons we developed this plugin, is because on_send_ok is now de
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
-
= 1.3.
|
73 |
-
* Fixed a bug: Redirection
|
74 |
|
75 |
= 1.3.4 =
|
76 |
* Fixed a bug: "Changes you made may not be saved" pop-up no longer appears when no changes have been made.
|
@@ -97,7 +98,7 @@ No. One of the reasons we developed this plugin, is because on_send_ok is now de
|
|
97 |
* Minor dev improvements.
|
98 |
|
99 |
= 1.2.7 =
|
100 |
-
* Script field now accepts special characters, such as < and >.
|
101 |
|
102 |
= 1.2.6 =
|
103 |
* Added support for browsers that don't support AJAX.
|
2 |
Tags: contact form 7 redirect, contact form 7 thank you page, redirect cf7, redirect contact form 7, contact form 7 success page, cf7 redirect
|
3 |
Contributors: yuvalsabar
|
4 |
Requires at least: 4.7.0
|
5 |
+
Tested up to: 5.4.1
|
6 |
+
Stable tag: 1.3.6
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
12 |
== Description ==
|
13 |
|
14 |
A straightforward add-on plugin for Contact Form 7 - adds the option to redirect to any page you choose after mail sent successfully, with DOM Events and without AJAX being disabled.
|
15 |
+
NOTE: This plugin requires Contact Form 7 version 4.8 or later.
|
16 |
|
17 |
== Usage ==
|
18 |
|
25 |
* Run JavaScript after form submission (great for conversion management)
|
26 |
* Pass fields from the form as URL query parameters
|
27 |
|
28 |
+
* **[Pro]** Create new posts from submitted forms
|
29 |
* **[Pro]** Create registration forms
|
30 |
* **[Pro]** Create login forms
|
31 |
* **[Pro]** Add to Mailchimp list
|
62 |
|
63 |
= Does this plugin uses "on_sent_ok" additional setting? =
|
64 |
|
65 |
+
No. One of the reasons we developed this plugin, is because on_send_ok is now deprecated, and is going to be abolished by the end of 2017. This plugin is the only redirect plugin for Contact Form 7 that has been updated to use [DOM events](https://contactform7.com/dom-events/) to perform redirect, as Contact Form 7 developer Takayuki Miyoshi recommends.
|
66 |
|
67 |
== Screenshots ==
|
68 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.3.6 =
|
74 |
+
* Fixed a bug: Redirection for legacy browsers (non-ajax) not working when using external url.
|
75 |
|
76 |
= 1.3.4 =
|
77 |
* Fixed a bug: "Changes you made may not be saved" pop-up no longer appears when no changes have been made.
|
98 |
* Minor dev improvements.
|
99 |
|
100 |
= 1.2.7 =
|
101 |
+
* Script field now accepts special characters, such as < and >.
|
102 |
|
103 |
= 1.2.6 =
|
104 |
* Added support for browsers that don't support AJAX.
|
wpcf7-redirect.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Redirection for Contact Form 7
|
4 |
* Plugin URI: http://querysol.com
|
5 |
* Description: Contact Form 7 Add-on - Redirect after mail sent.
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Query Solutions
|
8 |
* Author URI: http://querysol.com
|
9 |
* Contributors: querysolutions, yuvalsabar
|
@@ -31,7 +31,7 @@ class WPCF7_Redirect {
|
|
31 |
public function __construct() {
|
32 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
33 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
34 |
-
$this->version = '1.3.
|
35 |
$this->add_actions();
|
36 |
}
|
37 |
|
@@ -342,7 +342,7 @@ class WPCF7_Redirect {
|
|
342 |
if ( $submission->get_status() === 'mail_sent' ) {
|
343 |
|
344 |
// Use extrnal url
|
345 |
-
if ( 'on' === $this->fields['
|
346 |
$this->redirect_url = $this->fields['external_url'];
|
347 |
} else {
|
348 |
$this->redirect_url = get_permalink( $this->fields['page_id'] );
|
@@ -385,14 +385,13 @@ class WPCF7_Redirect {
|
|
385 |
|
386 |
<?php if ( ! get_option( 'wpcf7_redirect_banner_dismiss' ) ) : ?>
|
387 |
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
</
|
395 |
-
</div>
|
396 |
|
397 |
<?php endif; ?>
|
398 |
|
@@ -510,7 +509,7 @@ class WPCF7_Redirect {
|
|
510 |
<div class="get-pro">
|
511 |
<span class="dashicons dashicons-star-filled"></span>
|
512 |
<a href="https://querysol.com/product/contact-form-7-redirection/" target="_blank">
|
513 |
-
Redirection Pro For Contact Form 7 - We've added exciting new features!
|
514 |
</a>
|
515 |
<span class="dashicons dashicons-star-filled"></span>
|
516 |
</div>
|
3 |
* Plugin Name: Redirection for Contact Form 7
|
4 |
* Plugin URI: http://querysol.com
|
5 |
* Description: Contact Form 7 Add-on - Redirect after mail sent.
|
6 |
+
* Version: 1.3.6
|
7 |
* Author: Query Solutions
|
8 |
* Author URI: http://querysol.com
|
9 |
* Contributors: querysolutions, yuvalsabar
|
31 |
public function __construct() {
|
32 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
33 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
34 |
+
$this->version = '1.3.6';
|
35 |
$this->add_actions();
|
36 |
}
|
37 |
|
342 |
if ( $submission->get_status() === 'mail_sent' ) {
|
343 |
|
344 |
// Use extrnal url
|
345 |
+
if ( 'on' === $this->fields['use_external_url'] && $this->fields['external_url'] ) {
|
346 |
$this->redirect_url = $this->fields['external_url'];
|
347 |
} else {
|
348 |
$this->redirect_url = get_permalink( $this->fields['page_id'] );
|
385 |
|
386 |
<?php if ( ! get_option( 'wpcf7_redirect_banner_dismiss' ) ) : ?>
|
387 |
|
388 |
+
<div class="banner-wrap">
|
389 |
+
<button type="button" class="notice-dismiss" aria-label="<?php _e( 'Close Banner', 'wpcf7-redirect' ); ?>" title="<?php _e( 'Close Banner', 'wpcf7-redirect' ); ?>"></button>
|
390 |
+
|
391 |
+
<a href="https://querysol.com/product/contact-form-7-redirection/" target="_blank">
|
392 |
+
<img src="<?php echo $this->plugin_url; ?>/img/banner-pro.png" alt="<?php _e( 'Banner - Redirection Pro For Contact Form 7', 'wpcf7-redirect' ); ?>">
|
393 |
+
</a>
|
394 |
+
</div>
|
|
|
395 |
|
396 |
<?php endif; ?>
|
397 |
|
509 |
<div class="get-pro">
|
510 |
<span class="dashicons dashicons-star-filled"></span>
|
511 |
<a href="https://querysol.com/product/contact-form-7-redirection/" target="_blank">
|
512 |
+
<?php _e( "Redirection Pro For Contact Form 7 - We've added exciting new features!", 'wpcf7-redirect' ); ?>
|
513 |
</a>
|
514 |
<span class="dashicons dashicons-star-filled"></span>
|
515 |
</div>
|