plugin updates

This commit is contained in:
Tony Volpe
2024-02-21 16:19:46 +00:00
parent c72f206574
commit 21d4c85c00
1214 changed files with 102269 additions and 179257 deletions

View File

@@ -261,7 +261,7 @@ function wpcf7_canonicalize( $text, $args = '' ) {
* @return string Sanitized unit-tag.
*/
function wpcf7_sanitize_unit_tag( $tag ) {
$tag = preg_replace( '/[^A-Za-z0-9_-]/', '', $tag );
$tag = preg_replace( '/[^A-Za-z0-9_-]/', '', (string) $tag );
return $tag;
}

View File

@@ -355,6 +355,13 @@ class WPCF7_REST_Controller {
$request->get_param( '_wpcf7_unit_tag' )
);
if ( empty( $unit_tag ) ) {
return new WP_Error( 'wpcf7_unit_tag_not_found',
__( "There is no valid unit tag.", 'contact-form-7' ),
array( 'status' => 400 )
);
}
$result = $item->submit();
$response = array_merge( $result, array(

View File

@@ -219,6 +219,18 @@ function wpcf7_sendinblue_collect_parameters() {
}
}
$params = array_map(
function ( $param ) {
if ( is_array( $param ) ) {
$param = wpcf7_array_flatten( $param );
$param = reset( $param );
}
return $param;
},
$params
);
$params = apply_filters(
'wpcf7_sendinblue_collect_parameters',
$params

View File

@@ -5,7 +5,7 @@ Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, mult
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 6.4
Stable tag: 5.8.6
Stable tag: 5.8.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -78,6 +78,10 @@ Do you have questions or issues with Contact Form 7? Use these support channels
For more information, see [Releases](https://contactform7.com/category/releases/).
= 5.8.7 =
[https://contactform7.com/contact-form-7-587/](https://contactform7.com/contact-form-7-587/)
= 5.8.6 =
[https://contactform7.com/contact-form-7-586/](https://contactform7.com/contact-form-7-586/)

View File

@@ -7,12 +7,12 @@
* Author URI: https://ideasilo.wordpress.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Version: 5.8.6
* Version: 5.8.7
* Requires at least: 6.2
* Requires PHP: 7.4
*/
define( 'WPCF7_VERSION', '5.8.6' );
define( 'WPCF7_VERSION', '5.8.7' );
define( 'WPCF7_REQUIRED_WP_VERSION', '6.2' );