Contact Form 7 - Version 5.5.1

Version Description

  • Fixed: Reserved keyword was used in PHP class constant name.
  • Fixed: Uncaught TypeError on in_array() call.
Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 5.5.1
Comparing to
See all releases

Code changes from version 5.5 to 5.5.1

admin/includes/welcome-panel.php CHANGED
@@ -276,7 +276,7 @@ function wpcf7_welcome_panel_screen_settings( $screen_settings, $screen ) {
276
  return $screen_settings;
277
  }
278
 
279
- $vers = get_user_meta( get_current_user_id(),
280
  'wpcf7_hide_welcome_panel_on', true
281
  );
282
 
276
  return $screen_settings;
277
  }
278
 
279
+ $vers = (array) get_user_meta( get_current_user_id(),
280
  'wpcf7_hide_welcome_panel_on', true
281
  );
282
 
includes/rest-api.php CHANGED
@@ -12,11 +12,11 @@ add_action(
12
 
13
  class WPCF7_REST_Controller {
14
 
15
- const namespace = 'contact-form-7/v1';
16
 
17
  public function register_routes() {
18
 
19
- register_rest_route( self::namespace,
20
  '/contact-forms',
21
  array(
22
  array(
@@ -50,7 +50,7 @@ class WPCF7_REST_Controller {
50
  )
51
  );
52
 
53
- register_rest_route( self::namespace,
54
  '/contact-forms/(?P<id>\d+)',
55
  array(
56
  'args' => $this->get_argument_schema(),
@@ -105,7 +105,7 @@ class WPCF7_REST_Controller {
105
  )
106
  );
107
 
108
- register_rest_route( self::namespace,
109
  '/contact-forms/(?P<id>\d+)/feedback',
110
  array(
111
  'args' => $this->get_argument_schema(),
@@ -117,7 +117,7 @@ class WPCF7_REST_Controller {
117
  )
118
  );
119
 
120
- register_rest_route( self::namespace,
121
  '/contact-forms/(?P<id>\d+)/refill',
122
  array(
123
  'args' => $this->get_argument_schema(),
12
 
13
  class WPCF7_REST_Controller {
14
 
15
+ const route_namespace = 'contact-form-7/v1';
16
 
17
  public function register_routes() {
18
 
19
+ register_rest_route( self::route_namespace,
20
  '/contact-forms',
21
  array(
22
  array(
50
  )
51
  );
52
 
53
+ register_rest_route( self::route_namespace,
54
  '/contact-forms/(?P<id>\d+)',
55
  array(
56
  'args' => $this->get_argument_schema(),
105
  )
106
  );
107
 
108
+ register_rest_route( self::route_namespace,
109
  '/contact-forms/(?P<id>\d+)/feedback',
110
  array(
111
  'args' => $this->get_argument_schema(),
117
  )
118
  );
119
 
120
+ register_rest_route( self::route_namespace,
121
  '/contact-forms/(?P<id>\d+)/refill',
122
  array(
123
  'args' => $this->get_argument_schema(),
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 =
81
 
82
  [https://contactform7.com/contact-form-7-55/](https://contactform7.com/contact-form-7-55/)
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.1
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.1 =
81
+
82
+ * Fixed: Reserved keyword was used in PHP class constant name.
83
+ * Fixed: Uncaught TypeError on `in_array()` call.
84
+
85
  = 5.5 =
86
 
87
  [https://contactform7.com/contact-form-7-55/](https://contactform7.com/contact-form-7-55/)
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.1
11
  */
12
 
13
+ define( 'WPCF7_VERSION', '5.5.1' );
14
 
15
  define( 'WPCF7_REQUIRED_WP_VERSION', '5.7' );
16