Version Description
- Added the Privacy Notices section to the readme.txt file.
- Updated the Information meta-box content.
- Use get_user_locale() instead of get_locale() where it is more appropriate.
- Acceptance Checkbox: Reset submit buttons disabled status after a successful submission.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 5.0.2 |
Comparing to | |
See all releases |
Code changes from version 5.0.1 to 5.0.2
- admin/admin.php +2 -1
- admin/edit-contact-form.php +26 -6
- includes/contact-form.php +1 -1
- includes/js/scripts.js +2 -0
- includes/l10n.php +1 -1
- readme.txt +22 -1
- wp-contact-form-7.php +2 -2
admin/admin.php
CHANGED
@@ -251,7 +251,8 @@ function wpcf7_load_contact_form_admin() {
|
|
251 |
|
252 |
if ( 'wpcf7-new' == $plugin_page ) {
|
253 |
$post = WPCF7_ContactForm::get_template( array(
|
254 |
-
'locale' => isset( $_GET['locale'] ) ? $_GET['locale'] : null
|
|
|
255 |
} elseif ( ! empty( $_GET['post'] ) ) {
|
256 |
$post = WPCF7_ContactForm::get_instance( $_GET['post'] );
|
257 |
}
|
251 |
|
252 |
if ( 'wpcf7-new' == $plugin_page ) {
|
253 |
$post = WPCF7_ContactForm::get_template( array(
|
254 |
+
'locale' => isset( $_GET['locale'] ) ? $_GET['locale'] : null,
|
255 |
+
) );
|
256 |
} elseif ( ! empty( $_GET['post'] ) ) {
|
257 |
$post = WPCF7_ContactForm::get_instance( $_GET['post'] );
|
258 |
}
|
admin/edit-contact-form.php
CHANGED
@@ -167,13 +167,33 @@ if ( $post ) :
|
|
167 |
<?php endif; ?>
|
168 |
|
169 |
<div id="informationdiv" class="postbox">
|
170 |
-
<h3><?php echo esc_html( __(
|
171 |
<div class="inside">
|
172 |
-
<
|
173 |
-
<
|
174 |
-
<li><?php echo
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
</div>
|
178 |
</div><!-- #informationdiv -->
|
179 |
|
167 |
<?php endif; ?>
|
168 |
|
169 |
<div id="informationdiv" class="postbox">
|
170 |
+
<h3><?php echo esc_html( __( "Do you need help?", 'contact-form-7' ) ); ?></h3>
|
171 |
<div class="inside">
|
172 |
+
<p><?php echo esc_html( __( "Here are some available options to help solve your problems.", 'contact-form-7' ) ); ?></p>
|
173 |
+
<ol>
|
174 |
+
<li><?php echo sprintf(
|
175 |
+
/* translators: 1: FAQ, 2: Docs ("FAQ & Docs") */
|
176 |
+
__( '%1$s & %2$s', 'contact-form-7' ),
|
177 |
+
wpcf7_link(
|
178 |
+
__( 'https://contactform7.com/faq/', 'contact-form-7' ),
|
179 |
+
__( 'FAQ', 'contact-form-7' )
|
180 |
+
),
|
181 |
+
wpcf7_link(
|
182 |
+
__( 'https://contactform7.com/docs/', 'contact-form-7' ),
|
183 |
+
__( 'Docs', 'contact-form-7' )
|
184 |
+
)
|
185 |
+
); ?></li>
|
186 |
+
<li><?php echo wpcf7_link(
|
187 |
+
__( 'https://wordpress.org/support/plugin/contact-form-7/', 'contact-form-7' ),
|
188 |
+
__( 'Support Forums', 'contact-form-7' )
|
189 |
+
); ?></li>
|
190 |
+
<?php if ( 'en_' === substr( get_user_locale(), 0, 3 ) ) : ?>
|
191 |
+
<li><?php echo wpcf7_link(
|
192 |
+
__( 'https://contactform7.com/custom-development/', 'contact-form-7' ),
|
193 |
+
__( 'Professional Services', 'contact-form-7' )
|
194 |
+
); ?></li>
|
195 |
+
<?php endif; ?>
|
196 |
+
</ol>
|
197 |
</div>
|
198 |
</div><!-- #informationdiv -->
|
199 |
|
includes/contact-form.php
CHANGED
@@ -80,7 +80,7 @@ class WPCF7_ContactForm {
|
|
80 |
self::$current = $contact_form = new self;
|
81 |
$contact_form->title =
|
82 |
( $title ? $title : __( 'Untitled', 'contact-form-7' ) );
|
83 |
-
$contact_form->locale = ( $locale ? $locale :
|
84 |
|
85 |
$properties = $contact_form->get_properties();
|
86 |
|
80 |
self::$current = $contact_form = new self;
|
81 |
$contact_form->title =
|
82 |
( $title ? $title : __( 'Untitled', 'contact-form-7' ) );
|
83 |
+
$contact_form->locale = ( $locale ? $locale : get_user_locale() );
|
84 |
|
85 |
$properties = $contact_form->get_properties();
|
86 |
|
includes/js/scripts.js
CHANGED
@@ -308,6 +308,8 @@
|
|
308 |
$form.each( function() {
|
309 |
this.reset();
|
310 |
} );
|
|
|
|
|
311 |
}
|
312 |
|
313 |
$form.find( '[placeholder].placeheld' ).each( function( i, n ) {
|
308 |
$form.each( function() {
|
309 |
this.reset();
|
310 |
} );
|
311 |
+
|
312 |
+
wpcf7.toggleSubmit( $form );
|
313 |
}
|
314 |
|
315 |
$form.find( '[placeholder].placeheld' ).each( function( i, n ) {
|
includes/l10n.php
CHANGED
@@ -65,7 +65,7 @@ function wpcf7_load_textdomain( $locale = null ) {
|
|
65 |
|
66 |
$domain = 'contact-form-7';
|
67 |
|
68 |
-
if ( get_locale()
|
69 |
$locale = null;
|
70 |
}
|
71 |
|
65 |
|
66 |
$domain = 'contact-form-7';
|
67 |
|
68 |
+
if ( ( is_admin() ? get_user_locale() : get_locale() ) === $locale ) {
|
69 |
$locale = null;
|
70 |
}
|
71 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://contactform7.com/donate/
|
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,6 +22,20 @@ You can find [docs](https://contactform7.com/docs/), [FAQ](https://contactform7.
|
|
22 |
|
23 |
It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider [__making a donation__](https://contactform7.com/donate/). Your donation will help encourage and support the plugin's continued development and better user support.
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
= Recommended Plugins =
|
26 |
|
27 |
The following plugins are recommended for Contact Form 7 users:
|
@@ -60,6 +74,13 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
60 |
|
61 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
= 5.0.1 =
|
64 |
|
65 |
* Fixed incorrect uses of _n().
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
|
23 |
It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider [__making a donation__](https://contactform7.com/donate/). Your donation will help encourage and support the plugin's continued development and better user support.
|
24 |
|
25 |
+
= Privacy Notices =
|
26 |
+
|
27 |
+
With the default configuration, this plugin, in itself, does not:
|
28 |
+
|
29 |
+
* track users by stealth;
|
30 |
+
* write any user personal data to the database;
|
31 |
+
* send any data to external servers;
|
32 |
+
* use cookies.
|
33 |
+
|
34 |
+
If you activate certain features in this plugin, the contact form submitter's personal data, including their IP address, may be sent to the service provider. Thus, confirming the provider's privacy policy is recommended. These features include:
|
35 |
+
|
36 |
+
* reCAPTCHA ([Google](https://policies.google.com/?hl=en))
|
37 |
+
* Akismet ([Automattic](https://automattic.com/privacy/))
|
38 |
+
|
39 |
= Recommended Plugins =
|
40 |
|
41 |
The following plugins are recommended for Contact Form 7 users:
|
74 |
|
75 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
76 |
|
77 |
+
= 5.0.2 =
|
78 |
+
|
79 |
+
* Added the Privacy Notices section to the readme.txt file.
|
80 |
+
* Updated the Information meta-box content.
|
81 |
+
* Use get_user_locale() instead of get_locale() where it is more appropriate.
|
82 |
+
* Acceptance Checkbox: Reset submit buttons’ disabled status after a successful submission.
|
83 |
+
|
84 |
= 5.0.1 =
|
85 |
|
86 |
* Fixed incorrect uses of _n().
|
wp-contact-form-7.php
CHANGED
@@ -7,10 +7,10 @@ Author: Takayuki Miyoshi
|
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 5.0.
|
11 |
*/
|
12 |
|
13 |
-
define( 'WPCF7_VERSION', '5.0.
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '4.8' );
|
16 |
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 5.0.2
|
11 |
*/
|
12 |
|
13 |
+
define( 'WPCF7_VERSION', '5.0.2' );
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '4.8' );
|
16 |
|