Skip to content

Commit 2308020

Browse files
authored
Merge pull request #152 from mailchimp/release/1.8.0
Release/1.8.0
2 parents 423be9d + 381e3b1 commit 2308020

7 files changed

+49
-19
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7+
## [1.8.0] - 2025-05-08
8+
9+
**Note that this release bumps the WordPress minimum version from 6.3 to 6.4.**
10+
11+
### Added
12+
13+
- 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)).
14+
- 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)).
15+
- 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)).
16+
17+
### Changed
18+
19+
- 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)).
20+
- 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)).
21+
722
## [1.7.0] - 2025-04-08
823

924
### Changed
@@ -298,6 +313,7 @@ All notable changes to this project will be documented in this file, per [the Ke
298313
- Security and various other improvements
299314

300315
[Unreleased]: https://github.com/mailchimp/wordpress/compare/main...develop
316+
[1.8.0]: https://github.com/mailchimp/wordpress/compare/1.7.0...1.8.0
301317
[1.7.0]: https://github.com/mailchimp/wordpress/compare/1.6.3...1.7.0
302318
[1.6.3]: https://github.com/mailchimp/wordpress/compare/1.6.2...1.6.3
303319
[1.6.2]: https://github.com/mailchimp/wordpress/compare/1.6.1...1.6.2

includes/class-mailchimp-form-submission.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Class Mailchimp_Form_Submission
1515
*
16-
* @since x.x.x
16+
* @since 1.8.0
1717
*/
1818
class Mailchimp_Form_Submission {
1919

@@ -504,7 +504,7 @@ protected function validate_form_submission() {
504504
/**
505505
* Filter to allow for custom validation of the form submission.
506506
*
507-
* @since x.x.x
507+
* @since 1.8.0
508508
* @param bool $is_valid True if valid, false if invalid, return WP_Error to provide error message.
509509
* @param array $post_data The $_POST data.
510510
*/

includes/mailchimp-deprecated-functions.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/**
1919
* Prepare the merge fields body for the API request.
2020
*
21-
* @deprecated x.x.x
21+
* @deprecated 1.8.0
2222
* @param array $merge_fields Merge fields.
2323
* @return stdClass|WP_Error
2424
*/
2525
function mailchimp_sf_merge_submit( $merge_fields ) {
26-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' );
26+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' );
2727

2828
$form_submission = new Mailchimp_Form_Submission();
2929
return $form_submission->prepare_merge_fields_body( $merge_fields );
@@ -32,12 +32,12 @@ function mailchimp_sf_merge_submit( $merge_fields ) {
3232
/**
3333
* Prepare the interest groups body for the API request.
3434
*
35-
* @deprecated x.x.x
35+
* @deprecated 1.8.0
3636
* @param array $interest_groups Interest groups.
3737
* @return stdClass
3838
*/
3939
function mailchimp_sf_groups_submit( $interest_groups ) {
40-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_groups_body()' );
40+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_groups_body()' );
4141

4242
$form_submission = new Mailchimp_Form_Submission();
4343
return $form_submission->prepare_groups_body( $interest_groups );
@@ -46,11 +46,11 @@ function mailchimp_sf_groups_submit( $interest_groups ) {
4646
/**
4747
* Set all groups to false
4848
*
49-
* @deprecated x.x.x
49+
* @deprecated 1.8.0
5050
* @return StdClass
5151
*/
5252
function mailchimp_sf_set_all_groups_to_false() {
53-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::set_all_groups_to_false()' );
53+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::set_all_groups_to_false()' );
5454

5555
$interest_groups = get_option( 'mc_interest_groups' );
5656
$form_submission = new Mailchimp_Form_Submission();
@@ -60,11 +60,11 @@ function mailchimp_sf_set_all_groups_to_false() {
6060
/**
6161
* Get signup form URL.
6262
*
63-
* @deprecated x.x.x
63+
* @deprecated 1.8.0
6464
* @return string
6565
*/
6666
function mailchimp_sf_signup_form_url() {
67-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::get_signup_form_url()' );
67+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::get_signup_form_url()' );
6868

6969
$list_id = get_option( 'mc_list_id' );
7070
$form_submission = new Mailchimp_Form_Submission();
@@ -78,12 +78,12 @@ function mailchimp_sf_signup_form_url() {
7878
* This sets a global message, that is then used in the widget
7979
* output to retrieve and display that message.
8080
*
81-
* @deprecated x.x.x
81+
* @deprecated 1.8.0
8282
*
8383
* @return bool
8484
*/
8585
function mailchimp_sf_signup_submit() {
86-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::handle_form_submission()' );
86+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::handle_form_submission()' );
8787

8888
$form_submission = new Mailchimp_Form_Submission();
8989
$response = $form_submission->handle_form_submission();
@@ -102,11 +102,13 @@ function mailchimp_sf_signup_submit() {
102102
/**
103103
* Remove empty merge fields from the request body.
104104
*
105+
* @deprecated 1.8.0
106+
*
105107
* @param object $merge Merge fields request body.
106108
* @return object The modified merge fields request body.
107109
*/
108110
function mailchimp_sf_merge_remove_empty( $merge ) {
109-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' );
111+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' );
110112

111113
$form_submission = new Mailchimp_Form_Submission();
112114
return $form_submission->remove_empty_merge_fields( $merge );

mailchimp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://mailchimp.com/help/connect-or-disconnect-list-subscribe-for-wordpress/
55
* Description: Add a Mailchimp signup form block, widget or shortcode to your WordPress site.
66
* Text Domain: mailchimp
7-
* Version: 1.7.0
7+
* Version: 1.8.0
88
* Requires at least: 6.4
99
* Requires PHP: 7.0
1010
* PHP tested up to: 8.3
@@ -67,7 +67,7 @@ function () {
6767
use function Mailchimp\WordPress\Includes\Admin\{admin_notice_error, admin_notice_success};
6868

6969
// Version constant for easy CSS refreshes
70-
define( 'MCSF_VER', '1.7.0' );
70+
define( 'MCSF_VER', '1.8.0' );
7171

7272
// What's our permission (capability) threshold
7373
define( 'MCSF_CAP_THRESHOLD', 'manage_options' );

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mailchimp/wordpress",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Add a Mailchimp signup form widget to your WordPress site.",
55
"homepage": "https://github.com/mailchimp/wordpress",
66
"bugs": {

readme.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: Mailchimp
33
Tags: mailchimp, email, newsletter, signup, marketing
44
Tested up to: 6.8
5-
Stable tag: 1.7.0
5+
Stable tag: 1.8.0
66
License: GPL-2.0-or-later
77
License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
88

@@ -81,6 +81,15 @@ If you are upgrading to version 1.2.1 and you used the widget in your sidebar pr
8181

8282
== Changelog ==
8383

84+
= 1.8.0 - 2025-05-08 =
85+
**Note that this release bumps the WordPress minimum version from 6.3 to 6.4.**
86+
87+
* **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)).
88+
* **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)).
89+
* **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)).
90+
* **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)).
91+
* **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)).
92+
8493
= 1.7.0 - 2025-04-08 =
8594
* **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)).
8695
* **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
161170

162171
== Upgrade Notice ==
163172

173+
= 1.8.0 =
174+
This release bumps the WordPress minimum version from 6.3 to 6.4.
175+
164176
= 1.6.2 =
165177
This release bumps the WordPress minimum version from 6.1 to 6.3.
166178

0 commit comments

Comments
 (0)