Plugin Updates

This commit is contained in:
Tony Volpe
2024-04-02 20:23:21 +00:00
parent 96800520e8
commit 94170ec2c4
1514 changed files with 133309 additions and 105985 deletions

View File

@@ -375,7 +375,7 @@ class WPCF7_Submission {
$value_orig = $value = $posted_data[$tag->name] ?? '';
if ( wpcf7_form_tag_supports( $tag->type, 'selectable-values' ) ) {
$value = (array) $value;
$value = ( '' === $value ) ? array() : (array) $value;
if ( WPCF7_USE_PIPE ) {
$pipes = $this->contact_form->get_pipes( $tag->name );

View File

@@ -66,7 +66,7 @@ function wpcf7_swv_load_rules() {
*
* @param string $rule_name Rule name.
* @param string|array $properties Optional. Rule properties.
* @return Rule|null The rule object, or null if it failed.
* @return \Contactable\SWV\Rule|null The rule object, or null if it failed.
*/
function wpcf7_swv_create_rule( $rule_name, $properties = '' ) {
$rules = wpcf7_swv_available_rules();

View File

@@ -13,8 +13,9 @@ function wpcf7_listo( $data, $options, $args ) {
$args = wp_parse_args( $args, array() );
$contact_form = wpcf7_get_current_contact_form();
$args['locale'] = $contact_form->locale();
if ( $contact_form = wpcf7_get_current_contact_form() ) {
$args['locale'] = $contact_form->locale();
}
foreach ( (array) $options as $option ) {
$option = explode( '.', $option );

View File

@@ -168,24 +168,6 @@ function wpcf7_quiz_ajax_refill( $items ) {
}
/* Mail-tag replacement */
add_filter( 'wpcf7_mail_tag_replaced_quiz', 'wpcf7_quiz_mail_tag', 10, 4 );
function wpcf7_quiz_mail_tag( $replaced, $submitted, $html, $mail_tag ) {
$field_name = $mail_tag->field_name();
$submitted = $_POST[$field_name] ?? '';
$replaced = $submitted;
if ( $html ) {
$replaced = esc_html( $replaced );
$replaced = wptexturize( $replaced );
}
return $replaced;
}
/* Messages */
add_filter( 'wpcf7_messages', 'wpcf7_quiz_messages', 10, 1 );

View File

@@ -5,7 +5,7 @@ Tags: contact form, schema-woven validation
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.5
Stable tag: 5.9.2
Stable tag: 5.9.3
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.9.3 =
[https://contactform7.com/contact-form-7-593/](https://contactform7.com/contact-form-7-593/)
= 5.9.2 =
[https://contactform7.com/contact-form-7-592/](https://contactform7.com/contact-form-7-592/)

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.9.2
* Version: 5.9.3
* Requires at least: 6.3
* Requires PHP: 7.4
*/
define( 'WPCF7_VERSION', '5.9.2' );
define( 'WPCF7_VERSION', '5.9.3' );
define( 'WPCF7_REQUIRED_WP_VERSION', '6.3' );