Version Description
- CSS: removes a style rule from the stylesheet that was unnecessary and conflicting with Twenty Twentys rules.
- REST API: retrieves the contact form ID explicitly from the route parameters.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 5.1.6 |
Comparing to | |
See all releases |
Code changes from version 5.1.5 to 5.1.6
- includes/css/styles.css +0 -5
- includes/rest-api.php +7 -2
- readme.txt +6 -1
- wp-contact-form-7.php +2 -2
includes/css/styles.css
CHANGED
@@ -1,8 +1,3 @@
|
|
1 |
-
div.wpcf7 {
|
2 |
-
margin: 0;
|
3 |
-
padding: 0;
|
4 |
-
}
|
5 |
-
|
6 |
div.wpcf7 .screen-reader-response {
|
7 |
position: absolute;
|
8 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
1 |
div.wpcf7 .screen-reader-response {
|
2 |
position: absolute;
|
3 |
overflow: hidden;
|
includes/rest-api.php
CHANGED
@@ -268,8 +268,13 @@ function wpcf7_rest_delete_contact_form( WP_REST_Request $request ) {
|
|
268 |
}
|
269 |
|
270 |
function wpcf7_rest_create_feedback( WP_REST_Request $request ) {
|
271 |
-
$
|
272 |
-
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
if ( ! $item ) {
|
275 |
return new WP_Error( 'wpcf7_not_found',
|
268 |
}
|
269 |
|
270 |
function wpcf7_rest_create_feedback( WP_REST_Request $request ) {
|
271 |
+
$url_params = $request->get_url_params();
|
272 |
+
|
273 |
+
$item = null;
|
274 |
+
|
275 |
+
if ( ! empty( $url_params['id'] ) ) {
|
276 |
+
$item = wpcf7_contact_form( $url_params['id'] );
|
277 |
+
}
|
278 |
|
279 |
if ( ! $item ) {
|
280 |
return new WP_Error( 'wpcf7_not_found',
|
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.9
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 5.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -75,6 +75,11 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
75 |
|
76 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
77 |
|
|
|
|
|
|
|
|
|
|
|
78 |
= 5.1.5 =
|
79 |
|
80 |
* Config Validator: New test item for the unavailable_html_elements error.
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 5.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
75 |
|
76 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
77 |
|
78 |
+
= 5.1.6 =
|
79 |
+
|
80 |
+
* CSS: removes a style rule from the stylesheet that was unnecessary and conflicting with Twenty Twenty’s rules.
|
81 |
+
* REST API: retrieves the contact form ID explicitly from the route parameters.
|
82 |
+
|
83 |
= 5.1.5 =
|
84 |
|
85 |
* Config Validator: New test item for the unavailable_html_elements error.
|
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.1.
|
11 |
*/
|
12 |
|
13 |
-
define( 'WPCF7_VERSION', '5.1.
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '4.9' );
|
16 |
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 5.1.6
|
11 |
*/
|
12 |
|
13 |
+
define( 'WPCF7_VERSION', '5.1.6' );
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '4.9' );
|
16 |
|