Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions includes/class-mailchimp-form-submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Class Mailchimp_Form_Submission
*
* @since x.x.x
* @since 1.8.0
*/
class Mailchimp_Form_Submission {

Expand Down Expand Up @@ -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.
*/
Expand Down
24 changes: 13 additions & 11 deletions includes/mailchimp-deprecated-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' );
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 13 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)).
Expand Down Expand Up @@ -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.

Expand Down