Contact Form 7 5.8.1

Contact Form 7 version 5.8.1 is now available. This minor update release includes several improvements.

Changes in the configuration validator

Along with the introduction of the new error type that warns of unsafe email configurations, this version introduces important changes in the configuration validator. While most users don’t need to worry about this, if you are a developer and have ever used the WPCF7_ConfigValidator class in your code, I recommend you pay attention to the code changes. Some of the changes are backward-incompatible.

Requires: WordPress 6.2 or higher
Tested up to: WordPress 6.3.1

» Download Contact Form 7 plugin from WordPress.org

Major changes

  • Config validator: Introduces an error type (unsafe_email_without_protection) that warns of unsafe email configurations.
  • Config validator: The WPCF7_ConfigValidator constructor supports the include and exclude options.
  • Improves the default email templates by clarifying the footnote messages.
  • wpcf7_is_file_path_in_content_dir() additionally accepts WP_TEMP_DIR as an eligible content directory.
  • Adds inert to the boolean attributes list in wpcf7_format_atts().
  • New action hook: wpcf7_shortcode_callback
  • New action hook: wpcf7_update_option

You can browse the full list of changes on GitHub.