diff --git a/CHANGELOG.md b/CHANGELOG.md index dcc3acac..8a8936d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file, per [the Ke ## [Unreleased] - TBD +## [1.8.0] - 2025-05-08 + +**Note that this release bumps the WordPress minimum version from 6.3 to 6.4.** + +### Added + +- Honeypot and no-JS fields to help prevent spam (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#139](https://github.com/mailchimp/wordpress/pull/139)). +- Confirmation prompt before logging out the user (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#149](https://github.com/mailchimp/wordpress/pull/149)). +- A note advising users to set the website URL in the Mailchimp Audience settings (props [@iamdharmesh](https://github.com/iamdharmesh), [@MaxwellGarceau](https://github.com/MaxwellGarceau), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#145](https://github.com/mailchimp/wordpress/pull/145)). + +### Changed + +- Bump WordPress "tested up to" version 6.8 (props [@qasumitbagthariya](https://github.com/qasumitbagthariya), [@dkotter](https://github.com/dkotter) via [#148](https://github.com/mailchimp/wordpress/pull/148)). +- Bump WordPress minimum supported version from 6.3 to 6.4 (props [@qasumitbagthariya](https://github.com/qasumitbagthariya), [@dkotter](https://github.com/dkotter) via [#148](https://github.com/mailchimp/wordpress/pull/148)). + ## [1.7.0] - 2025-04-08 ### Changed @@ -298,6 +313,7 @@ All notable changes to this project will be documented in this file, per [the Ke - Security and various other improvements [Unreleased]: https://github.com/mailchimp/wordpress/compare/main...develop +[1.8.0]: https://github.com/mailchimp/wordpress/compare/1.7.0...1.8.0 [1.7.0]: https://github.com/mailchimp/wordpress/compare/1.6.3...1.7.0 [1.6.3]: https://github.com/mailchimp/wordpress/compare/1.6.2...1.6.3 [1.6.2]: https://github.com/mailchimp/wordpress/compare/1.6.1...1.6.2 diff --git a/includes/class-mailchimp-form-submission.php b/includes/class-mailchimp-form-submission.php index 337eca2f..96fd7078 100644 --- a/includes/class-mailchimp-form-submission.php +++ b/includes/class-mailchimp-form-submission.php @@ -13,7 +13,7 @@ /** * Class Mailchimp_Form_Submission * - * @since x.x.x + * @since 1.8.0 */ class Mailchimp_Form_Submission { @@ -504,7 +504,7 @@ protected function validate_form_submission() { /** * Filter to allow for custom validation of the form submission. * - * @since x.x.x + * @since 1.8.0 * @param bool $is_valid True if valid, false if invalid, return WP_Error to provide error message. * @param array $post_data The $_POST data. */ diff --git a/includes/mailchimp-deprecated-functions.php b/includes/mailchimp-deprecated-functions.php index cfc74b75..00ac791c 100644 --- a/includes/mailchimp-deprecated-functions.php +++ b/includes/mailchimp-deprecated-functions.php @@ -18,12 +18,12 @@ /** * Prepare the merge fields body for the API request. * - * @deprecated x.x.x + * @deprecated 1.8.0 * @param array $merge_fields Merge fields. * @return stdClass|WP_Error */ function mailchimp_sf_merge_submit( $merge_fields ) { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' ); $form_submission = new Mailchimp_Form_Submission(); return $form_submission->prepare_merge_fields_body( $merge_fields ); @@ -32,12 +32,12 @@ function mailchimp_sf_merge_submit( $merge_fields ) { /** * Prepare the interest groups body for the API request. * - * @deprecated x.x.x + * @deprecated 1.8.0 * @param array $interest_groups Interest groups. * @return stdClass */ function mailchimp_sf_groups_submit( $interest_groups ) { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_groups_body()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_groups_body()' ); $form_submission = new Mailchimp_Form_Submission(); return $form_submission->prepare_groups_body( $interest_groups ); @@ -46,11 +46,11 @@ function mailchimp_sf_groups_submit( $interest_groups ) { /** * Set all groups to false * - * @deprecated x.x.x + * @deprecated 1.8.0 * @return StdClass */ function mailchimp_sf_set_all_groups_to_false() { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::set_all_groups_to_false()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::set_all_groups_to_false()' ); $interest_groups = get_option( 'mc_interest_groups' ); $form_submission = new Mailchimp_Form_Submission(); @@ -60,11 +60,11 @@ function mailchimp_sf_set_all_groups_to_false() { /** * Get signup form URL. * - * @deprecated x.x.x + * @deprecated 1.8.0 * @return string */ function mailchimp_sf_signup_form_url() { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::get_signup_form_url()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::get_signup_form_url()' ); $list_id = get_option( 'mc_list_id' ); $form_submission = new Mailchimp_Form_Submission(); @@ -78,12 +78,12 @@ function mailchimp_sf_signup_form_url() { * This sets a global message, that is then used in the widget * output to retrieve and display that message. * - * @deprecated x.x.x + * @deprecated 1.8.0 * * @return bool */ function mailchimp_sf_signup_submit() { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::handle_form_submission()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::handle_form_submission()' ); $form_submission = new Mailchimp_Form_Submission(); $response = $form_submission->handle_form_submission(); @@ -102,11 +102,13 @@ function mailchimp_sf_signup_submit() { /** * Remove empty merge fields from the request body. * + * @deprecated 1.8.0 + * * @param object $merge Merge fields request body. * @return object The modified merge fields request body. */ function mailchimp_sf_merge_remove_empty( $merge ) { - _deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' ); + _deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' ); $form_submission = new Mailchimp_Form_Submission(); return $form_submission->remove_empty_merge_fields( $merge ); diff --git a/mailchimp.php b/mailchimp.php index a2068069..73f8b6c9 100644 --- a/mailchimp.php +++ b/mailchimp.php @@ -4,7 +4,7 @@ * Plugin URI: https://mailchimp.com/help/connect-or-disconnect-list-subscribe-for-wordpress/ * Description: Add a Mailchimp signup form block, widget or shortcode to your WordPress site. * Text Domain: mailchimp - * Version: 1.7.0 + * Version: 1.8.0 * Requires at least: 6.4 * Requires PHP: 7.0 * PHP tested up to: 8.3 @@ -67,7 +67,7 @@ function () { use function Mailchimp\WordPress\Includes\Admin\{admin_notice_error, admin_notice_success}; // Version constant for easy CSS refreshes -define( 'MCSF_VER', '1.7.0' ); +define( 'MCSF_VER', '1.8.0' ); // What's our permission (capability) threshold define( 'MCSF_CAP_THRESHOLD', 'manage_options' ); diff --git a/package-lock.json b/package-lock.json index 102bd95c..d5ab0b57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mailchimp/wordpress", - "version": "1.7.0", + "version": "1.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mailchimp/wordpress", - "version": "1.7.0", + "version": "1.8.0", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/block-editor": "^13.2.0", diff --git a/package.json b/package.json index ebe36650..357a852a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mailchimp/wordpress", - "version": "1.7.0", + "version": "1.8.0", "description": "Add a Mailchimp signup form widget to your WordPress site.", "homepage": "https://github.com/mailchimp/wordpress", "bugs": { diff --git a/readme.txt b/readme.txt index 6ba2ed76..de51b749 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: Mailchimp Tags: mailchimp, email, newsletter, signup, marketing Tested up to: 6.8 -Stable tag: 1.7.0 +Stable tag: 1.8.0 License: GPL-2.0-or-later License URI: https://spdx.org/licenses/GPL-2.0-or-later.html @@ -81,6 +81,15 @@ If you are upgrading to version 1.2.1 and you used the widget in your sidebar pr == Changelog == += 1.8.0 - 2025-05-08 = +**Note that this release bumps the WordPress minimum version from 6.3 to 6.4.** + +* **Added:** Honeypot and no-JS fields to help prevent spam (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#139](https://github.com/mailchimp/wordpress/pull/139)). +* **Added:** Confirmation prompt before logging out the user (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#149](https://github.com/mailchimp/wordpress/pull/149)). +* **Added:** A note advising users to set the website URL in the Mailchimp Audience settings (props [@iamdharmesh](https://github.com/iamdharmesh), [@MaxwellGarceau](https://github.com/MaxwellGarceau), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#145](https://github.com/mailchimp/wordpress/pull/145)). +* **Changed:** Bump WordPress "tested up to" version 6.8 (props [@qasumitbagthariya](https://github.com/qasumitbagthariya), [@dkotter](https://github.com/dkotter) via [#148](https://github.com/mailchimp/wordpress/pull/148)). +* **Changed:** Bump WordPress minimum supported version from 6.3 to 6.4 (props [@qasumitbagthariya](https://github.com/qasumitbagthariya), [@dkotter](https://github.com/dkotter) via [#148](https://github.com/mailchimp/wordpress/pull/148)). + = 1.7.0 - 2025-04-08 = * **Changed:** Enhance the Mailchimp List Subscribe Form block to allow for selecting an audience list, reorder fields, toggle field and group visibility, and various other improvements (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#126](https://github.com/mailchimp/wordpress/pull/126)). * **Changed:** Plugin settings page success and error messages will now use WP admin notices (props [@MaxwellGarceau](https://github.com/MaxwellGarceau), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya), [@iamdharmesh](https://github.com/iamdharmesh) via [#85](https://github.com/mailchimp/wordpress/pull/85)). @@ -161,6 +170,9 @@ If you are upgrading to version 1.2.1 and you used the widget in your sidebar pr == Upgrade Notice == += 1.8.0 = +This release bumps the WordPress minimum version from 6.3 to 6.4. + = 1.6.2 = This release bumps the WordPress minimum version from 6.1 to 6.3.