Version Description
- REST API: Removes argument schema reference that causes error when the form has 'id' field.
- Changes method names that are reserved in PHP 5.6.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 5.5.2 |
Comparing to | |
See all releases |
Code changes from version 5.5.1 to 5.5.2
- admin/includes/welcome-panel.php +2 -2
- includes/rest-api.php +0 -3
- readme.txt +6 -1
- wp-contact-form-7.php +2 -2
admin/includes/welcome-panel.php
CHANGED
@@ -6,7 +6,7 @@ abstract class WPCF7_WelcomePanelColumn {
|
|
6 |
abstract protected function title();
|
7 |
abstract protected function content();
|
8 |
|
9 |
-
public function
|
10 |
$icon = sprintf(
|
11 |
'<span class="dashicons dashicons-%s" aria-hidden="true"></span>',
|
12 |
esc_attr( $this->icon() )
|
@@ -220,7 +220,7 @@ function wpcf7_welcome_panel() {
|
|
220 |
<?php
|
221 |
|
222 |
foreach ( $columns as $column ) {
|
223 |
-
$column->
|
224 |
}
|
225 |
|
226 |
?>
|
6 |
abstract protected function title();
|
7 |
abstract protected function content();
|
8 |
|
9 |
+
public function print_content() {
|
10 |
$icon = sprintf(
|
11 |
'<span class="dashicons dashicons-%s" aria-hidden="true"></span>',
|
12 |
esc_attr( $this->icon() )
|
220 |
<?php
|
221 |
|
222 |
foreach ( $columns as $column ) {
|
223 |
+
$column->print_content();
|
224 |
}
|
225 |
|
226 |
?>
|
includes/rest-api.php
CHANGED
@@ -53,7 +53,6 @@ class WPCF7_REST_Controller {
|
|
53 |
register_rest_route( self::route_namespace,
|
54 |
'/contact-forms/(?P<id>\d+)',
|
55 |
array(
|
56 |
-
'args' => $this->get_argument_schema(),
|
57 |
array(
|
58 |
'methods' => WP_REST_Server::READABLE,
|
59 |
'callback' => array( $this, 'get_contact_form' ),
|
@@ -108,7 +107,6 @@ class WPCF7_REST_Controller {
|
|
108 |
register_rest_route( self::route_namespace,
|
109 |
'/contact-forms/(?P<id>\d+)/feedback',
|
110 |
array(
|
111 |
-
'args' => $this->get_argument_schema(),
|
112 |
array(
|
113 |
'methods' => WP_REST_Server::CREATABLE,
|
114 |
'callback' => array( $this, 'create_feedback' ),
|
@@ -120,7 +118,6 @@ class WPCF7_REST_Controller {
|
|
120 |
register_rest_route( self::route_namespace,
|
121 |
'/contact-forms/(?P<id>\d+)/refill',
|
122 |
array(
|
123 |
-
'args' => $this->get_argument_schema(),
|
124 |
array(
|
125 |
'methods' => WP_REST_Server::READABLE,
|
126 |
'callback' => array( $this, 'get_refill' ),
|
53 |
register_rest_route( self::route_namespace,
|
54 |
'/contact-forms/(?P<id>\d+)',
|
55 |
array(
|
|
|
56 |
array(
|
57 |
'methods' => WP_REST_Server::READABLE,
|
58 |
'callback' => array( $this, 'get_contact_form' ),
|
107 |
register_rest_route( self::route_namespace,
|
108 |
'/contact-forms/(?P<id>\d+)/feedback',
|
109 |
array(
|
|
|
110 |
array(
|
111 |
'methods' => WP_REST_Server::CREATABLE,
|
112 |
'callback' => array( $this, 'create_feedback' ),
|
118 |
register_rest_route( self::route_namespace,
|
119 |
'/contact-forms/(?P<id>\d+)/refill',
|
120 |
array(
|
|
|
121 |
array(
|
122 |
'methods' => WP_REST_Server::READABLE,
|
123 |
'callback' => array( $this, 'get_refill' ),
|
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: 5.7
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 5.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,6 +77,11 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
77 |
|
78 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
79 |
|
|
|
|
|
|
|
|
|
|
|
80 |
= 5.5.1 =
|
81 |
|
82 |
* Fixed: Reserved keyword was used in PHP class constant name.
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 5.7
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 5.5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
|
78 |
For more information, see [Releases](https://contactform7.com/category/releases/).
|
79 |
|
80 |
+
= 5.5.2 =
|
81 |
+
|
82 |
+
* REST API: Removes argument schema reference that causes error when the form has 'id' field.
|
83 |
+
* Changes method names that are reserved in PHP 5.6.
|
84 |
+
|
85 |
= 5.5.1 =
|
86 |
|
87 |
* Fixed: Reserved keyword was used in PHP class constant name.
|
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.5.
|
11 |
*/
|
12 |
|
13 |
-
define( 'WPCF7_VERSION', '5.5.
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '5.7' );
|
16 |
|
7 |
Author URI: https://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 5.5.2
|
11 |
*/
|
12 |
|
13 |
+
define( 'WPCF7_VERSION', '5.5.2' );
|
14 |
|
15 |
define( 'WPCF7_REQUIRED_WP_VERSION', '5.7' );
|
16 |
|