Version Description
- Fix: misuse of functions that Akismet 3.0 has marked deprecated.
- Fix: some URL outputs used esc_url_raw in places where esc_url should be used.
- Translation for Finnish and Thai have been updated.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 3.8.1 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.8.1
- admin/admin.php +13 -13
- includes/classes.php +1 -1
- languages/contact-form-7-fi.mo +0 -0
- languages/contact-form-7-th.mo +0 -0
- modules/akismet.php +22 -4
- readme.txt +9 -3
- wp-contact-form-7.php +2 -2
admin/admin.php
CHANGED
@@ -402,13 +402,13 @@ add_action( 'wpcf7_admin_notices', 'wpcf7_cf7com_links', 9 );
|
|
402 |
|
403 |
function wpcf7_cf7com_links() {
|
404 |
$links = '<div class="cf7com-links">'
|
405 |
-
. '<a href="' .
|
406 |
. esc_html( __( 'Docs', 'contact-form-7' ) ) . '</a> - '
|
407 |
-
. '<a href="' .
|
408 |
. esc_html( __( 'FAQ', 'contact-form-7' ) ) . '</a> - '
|
409 |
-
. '<a href="' .
|
410 |
. esc_html( __( 'Support', 'contact-form-7' ) ) . '</a> - '
|
411 |
-
. '<a href="' .
|
412 |
. esc_html( __( 'Donate', 'contact-form-7' ) ) . '</a>'
|
413 |
. '</div>';
|
414 |
|
@@ -464,26 +464,26 @@ function wpcf7_welcome_panel() {
|
|
464 |
<div class="welcome-panel-column">
|
465 |
<h4><?php echo esc_html( __( 'Contact Form 7 Needs Your Support', 'contact-form-7' ) ); ?></h4>
|
466 |
<p class="message"><?php echo esc_html( __( "It is hard to continue development and support for this plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider making a donation.", 'contact-form-7' ) ); ?></p>
|
467 |
-
<p><a href="<?php echo
|
468 |
</div>
|
469 |
|
470 |
<div class="welcome-panel-column">
|
471 |
<h4><?php echo esc_html( __( 'Get Started', 'contact-form-7' ) ); ?></h4>
|
472 |
<ul>
|
473 |
-
<li><a href="<?php echo
|
474 |
-
<li><a href="<?php echo
|
475 |
-
<li><a href="<?php echo
|
476 |
-
<li><a href="<?php echo
|
477 |
</ul>
|
478 |
</div>
|
479 |
|
480 |
<div class="welcome-panel-column">
|
481 |
<h4><?php echo esc_html( __( 'Did You Know?', 'contact-form-7' ) ); ?></h4>
|
482 |
<ul>
|
483 |
-
<li><a href="<?php echo
|
484 |
-
<li><a href="<?php echo
|
485 |
-
<li><a href="<?php echo
|
486 |
-
<li><a href="<?php echo
|
487 |
</ul>
|
488 |
</div>
|
489 |
</div>
|
402 |
|
403 |
function wpcf7_cf7com_links() {
|
404 |
$links = '<div class="cf7com-links">'
|
405 |
+
. '<a href="' . esc_url( __( 'http://contactform7.com/docs/', 'contact-form-7' ) ) . '" target="_blank">'
|
406 |
. esc_html( __( 'Docs', 'contact-form-7' ) ) . '</a> - '
|
407 |
+
. '<a href="' . esc_url( __( 'http://contactform7.com/faq/', 'contact-form-7' ) ) . '" target="_blank">'
|
408 |
. esc_html( __( 'FAQ', 'contact-form-7' ) ) . '</a> - '
|
409 |
+
. '<a href="' . esc_url( __( 'http://contactform7.com/support/', 'contact-form-7' ) ) . '" target="_blank">'
|
410 |
. esc_html( __( 'Support', 'contact-form-7' ) ) . '</a> - '
|
411 |
+
. '<a href="' . esc_url( __( 'http://contactform7.com/donate/', 'contact-form-7' ) ) . '" target="_blank">'
|
412 |
. esc_html( __( 'Donate', 'contact-form-7' ) ) . '</a>'
|
413 |
. '</div>';
|
414 |
|
464 |
<div class="welcome-panel-column">
|
465 |
<h4><?php echo esc_html( __( 'Contact Form 7 Needs Your Support', 'contact-form-7' ) ); ?></h4>
|
466 |
<p class="message"><?php echo esc_html( __( "It is hard to continue development and support for this plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider making a donation.", 'contact-form-7' ) ); ?></p>
|
467 |
+
<p><a href="<?php echo esc_url( __( 'http://contactform7.com/donate/', 'contact-form-7' ) ); ?>" class="button button-primary" target="_blank"><?php echo esc_html( __( 'Donate', 'contact-form-7' ) ); ?></a></p>
|
468 |
</div>
|
469 |
|
470 |
<div class="welcome-panel-column">
|
471 |
<h4><?php echo esc_html( __( 'Get Started', 'contact-form-7' ) ); ?></h4>
|
472 |
<ul>
|
473 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/getting-started-with-contact-form-7/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Getting Started with Contact Form 7", 'contact-form-7' ) ); ?></a></li>
|
474 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/admin-screen/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Admin Screen", 'contact-form-7' ) ); ?></a></li>
|
475 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/tag-syntax/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "How Tags Work", 'contact-form-7' ) ); ?></a></li>
|
476 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/setting-up-mail/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Setting Up Mail", 'contact-form-7' ) ); ?></a></li>
|
477 |
</ul>
|
478 |
</div>
|
479 |
|
480 |
<div class="welcome-panel-column">
|
481 |
<h4><?php echo esc_html( __( 'Did You Know?', 'contact-form-7' ) ); ?></h4>
|
482 |
<ul>
|
483 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/spam-filtering-with-akismet/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Spam Filtering with Akismet", 'contact-form-7' ) ); ?></a></li>
|
484 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/save-submitted-messages-with-flamingo/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Save Messages with Flamingo", 'contact-form-7' ) ); ?></a></li>
|
485 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/selectable-recipient-with-pipes/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Selectable Recipient with Pipes", 'contact-form-7' ) ); ?></a></li>
|
486 |
+
<li><a href="<?php echo esc_url( __( 'http://contactform7.com/tracking-form-submissions-with-google-analytics/', 'contact-form-7' ) ); ?>" target="_blank"><?php echo esc_html( __( "Tracking with Google Analytics", 'contact-form-7' ) ); ?></a></li>
|
487 |
</ul>
|
488 |
</div>
|
489 |
</div>
|
includes/classes.php
CHANGED
@@ -264,7 +264,7 @@ class WPCF7_ContactForm {
|
|
264 |
$novalidate = apply_filters( 'wpcf7_form_novalidate',
|
265 |
wpcf7_support_html5() ? ' novalidate="novalidate"' : '' );
|
266 |
|
267 |
-
$html .= '<form action="' .
|
268 |
. ( $id_attr ? ' id="' . esc_attr( $id_attr ) . '"' : '' )
|
269 |
. ( $name_attr ? ' name="' . esc_attr( $name_attr ) . '"' : '' )
|
270 |
. ' class="' . esc_attr( $class ) . '"'
|
264 |
$novalidate = apply_filters( 'wpcf7_form_novalidate',
|
265 |
wpcf7_support_html5() ? ' novalidate="novalidate"' : '' );
|
266 |
|
267 |
+
$html .= '<form action="' . esc_url( $url ) . '" method="post"'
|
268 |
. ( $id_attr ? ' id="' . esc_attr( $id_attr ) . '"' : '' )
|
269 |
. ( $name_attr ? ' name="' . esc_attr( $name_attr ) . '"' : '' )
|
270 |
. ' class="' . esc_attr( $class ) . '"'
|
languages/contact-form-7-fi.mo
CHANGED
Binary file
|
languages/contact-form-7-th.mo
CHANGED
Binary file
|
modules/akismet.php
CHANGED
@@ -10,8 +10,9 @@ function wpcf7_akismet( $spam ) {
|
|
10 |
if ( $spam )
|
11 |
return $spam;
|
12 |
|
13 |
-
if ( !
|
14 |
return false;
|
|
|
15 |
|
16 |
if ( ! $params = wpcf7_akismet_submitted_params() )
|
17 |
return false;
|
@@ -53,6 +54,18 @@ function wpcf7_akismet( $spam ) {
|
|
53 |
return wpcf7_akismet_comment_check( $c );
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
function wpcf7_akismet_submitted_params() {
|
57 |
$params = array(
|
58 |
'author' => '',
|
@@ -107,11 +120,16 @@ function wpcf7_akismet_comment_check( $comment ) {
|
|
107 |
$spam = false;
|
108 |
$query_string = '';
|
109 |
|
110 |
-
foreach ( $comment as $key => $data )
|
111 |
$query_string .= $key . '=' . urlencode( wp_unslash( (string) $data ) ) . '&';
|
|
|
112 |
|
113 |
-
|
114 |
-
$
|
|
|
|
|
|
|
|
|
115 |
|
116 |
if ( 'true' == $response[1] )
|
117 |
$spam = true;
|
10 |
if ( $spam )
|
11 |
return $spam;
|
12 |
|
13 |
+
if ( ! wpcf7_akismet_is_available() ) {
|
14 |
return false;
|
15 |
+
}
|
16 |
|
17 |
if ( ! $params = wpcf7_akismet_submitted_params() )
|
18 |
return false;
|
54 |
return wpcf7_akismet_comment_check( $c );
|
55 |
}
|
56 |
|
57 |
+
function wpcf7_akismet_is_available() {
|
58 |
+
if ( is_callable( array( 'Akismet', 'get_api_key' ) ) ) { // Akismet v3.0+
|
59 |
+
return (bool) Akismet::get_api_key();
|
60 |
+
}
|
61 |
+
|
62 |
+
if ( function_exists( 'akismet_get_key' ) ) {
|
63 |
+
return (bool) akismet_get_key();
|
64 |
+
}
|
65 |
+
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
|
69 |
function wpcf7_akismet_submitted_params() {
|
70 |
$params = array(
|
71 |
'author' => '',
|
120 |
$spam = false;
|
121 |
$query_string = '';
|
122 |
|
123 |
+
foreach ( $comment as $key => $data ) {
|
124 |
$query_string .= $key . '=' . urlencode( wp_unslash( (string) $data ) ) . '&';
|
125 |
+
}
|
126 |
|
127 |
+
if ( is_callable( array( 'Akismet', 'http_post' ) ) ) { // Akismet v3.0+
|
128 |
+
$response = Akismet::http_post( $query_string, 'comment-check' );
|
129 |
+
} else {
|
130 |
+
$response = akismet_http_post( $query_string, $akismet_api_host,
|
131 |
+
'/1.1/comment-check', $akismet_api_port );
|
132 |
+
}
|
133 |
|
134 |
if ( 'true' == $response[1] )
|
135 |
$spam = true;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
|
|
3 |
Donate link: http://contactform7.com/donate/
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.7
|
6 |
-
Tested up to: 3.9
|
7 |
-
Stable tag: 3.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -90,7 +90,7 @@ The following are other recommended plugins by the author of Contact Form 7.
|
|
90 |
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
|
91 |
* Tagalog (tl) - [Rupert Agnew Lanuza](http://www.rupertlanuza.com/), [Hanne](http://pointen.dk/), [Language Connect](http://www.languageconnect.net/)
|
92 |
* Tamil (ta) - [Nitin Aggarwal](http://offshoreally.com/)
|
93 |
-
* Thai (th) - [ToshiK](http://www.tuntikorn.com/), [kazama](http://blog.wordthai.com/)
|
94 |
* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/), Burak Yavuz
|
95 |
* Ukrainian (uk) - [Andrey Kovba](http://myserver.com.ua/), [Ukrainian WordPress localization team](http://wordpress.co.ua/plugins/contact-form-7.html), Myroslava Pabyrivska
|
96 |
* Vietnamese (vi) - Thanh Hải, Hà, [Khang Minh](http://betterwp.net/)
|
@@ -124,6 +124,12 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
124 |
|
125 |
For more information, see [Releases](http://contactform7.com/category/releases/).
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 3.8 =
|
128 |
|
129 |
* Introduced data option for select, checkbox and radio form-tags. With Listo plugin, you can make a menu with hundreds of options.
|
3 |
Donate link: http://contactform7.com/donate/
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.7
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 3.8.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
90 |
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
|
91 |
* Tagalog (tl) - [Rupert Agnew Lanuza](http://www.rupertlanuza.com/), [Hanne](http://pointen.dk/), [Language Connect](http://www.languageconnect.net/)
|
92 |
* Tamil (ta) - [Nitin Aggarwal](http://offshoreally.com/)
|
93 |
+
* Thai (th) - [ToshiK](http://www.tuntikorn.com/), [kazama](http://blog.wordthai.com/), [TG Knowledge](http://www.เกร็ดความรู้.com/)
|
94 |
* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/), Burak Yavuz
|
95 |
* Ukrainian (uk) - [Andrey Kovba](http://myserver.com.ua/), [Ukrainian WordPress localization team](http://wordpress.co.ua/plugins/contact-form-7.html), Myroslava Pabyrivska
|
96 |
* Vietnamese (vi) - Thanh Hải, Hà, [Khang Minh](http://betterwp.net/)
|
124 |
|
125 |
For more information, see [Releases](http://contactform7.com/category/releases/).
|
126 |
|
127 |
+
= 3.8.1 =
|
128 |
+
|
129 |
+
* Fix: misuse of functions that Akismet 3.0 has marked deprecated.
|
130 |
+
* Fix: some URL outputs used esc_url_raw in places where esc_url should be used.
|
131 |
+
* Translation for Finnish and Thai have been updated.
|
132 |
+
|
133 |
= 3.8 =
|
134 |
|
135 |
* Introduced data option for select, checkbox and radio form-tags. With Listo plugin, you can make a menu with hundreds of options.
|
wp-contact-form-7.php
CHANGED
@@ -7,7 +7,7 @@ Author: Takayuki Miyoshi
|
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 3.8
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
|
@@ -27,7 +27,7 @@ Version: 3.8
|
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
-
define( 'WPCF7_VERSION', '3.8' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.7' );
|
33 |
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 3.8.1
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
+
define( 'WPCF7_VERSION', '3.8.1' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.7' );
|
33 |
|