Changeset 3435538
- Timestamp:
- 01/08/2026 11:25:49 PM (6 weeks ago)
- Location:
- mailchimp
- Files:
-
- 16 edited
- 1 copied
-
tags/2.0.1 (copied) (copied from mailchimp/trunk)
-
tags/2.0.1/includes/admin/class-mailchimp-user-sync.php (modified) (1 diff)
-
tags/2.0.1/includes/admin/templates/settings.php (modified) (1 diff)
-
tags/2.0.1/includes/admin/templates/setup-page.php (modified) (3 diffs)
-
tags/2.0.1/includes/class-mailchimp-form-submission.php (modified) (7 diffs)
-
tags/2.0.1/mailchimp.php (modified) (8 diffs)
-
tags/2.0.1/readme.txt (modified) (5 diffs)
-
tags/2.0.1/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.0.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/admin/class-mailchimp-user-sync.php (modified) (1 diff)
-
trunk/includes/admin/templates/settings.php (modified) (1 diff)
-
trunk/includes/admin/templates/setup-page.php (modified) (3 diffs)
-
trunk/includes/class-mailchimp-form-submission.php (modified) (7 diffs)
-
trunk/mailchimp.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mailchimp/tags/2.0.1/includes/admin/class-mailchimp-user-sync.php
r3343086 r3435538 326 326 'You will need %1$sa Mailchimp plan%2$s that includes %3$d contact.', 327 327 'You will need %1$sa Mailchimp plan%2$s that includes %3$d contacts.', 328 absint( $users_count ) 328 absint( $users_count ), 329 'mailchimp' 329 330 ), 330 331 '<a href="https://mailchimp.com/help/about-mailchimp-pricing-plans/" target="_blank" rel="noopener noreferrer">', -
mailchimp/tags/2.0.1/includes/admin/templates/settings.php
r3343086 r3435538 95 95 <div class="mailchimp-sf-settings-list-select-button"> 96 96 <input type="hidden" name="mcsf_action" value="update_mc_list_id" /> 97 <?php wp_nonce_field( 'update_mc_list_id_action', 'update_mc_list_id_nonce' ); ?> 97 98 <input type="submit" name="submit" value="<?php esc_attr_e( 'Fetch list settings', 'mailchimp' ); ?>" class="mailchimp-sf-button btn-secondary" /> 98 99 </div> -
mailchimp/tags/2.0.1/includes/admin/templates/setup-page.php
r3343086 r3435538 225 225 <th class="mailchimp-sf-option-header"> 226 226 <label for="mc_nuke_all_styles"> 227 <?php esc_html_e( 'Remove CSS' ); ?>227 <?php esc_html_e( 'Remove CSS', 'mailchimp' ); ?> 228 228 </label> 229 229 </th> … … 235 235 </div> 236 236 <label for="mc_nuke_all_styles"> 237 <?php esc_html_e( 'This will disable all Mailchimp CSS, so it\'s recommended for WordPress experts only.' ); ?>237 <?php esc_html_e( 'This will disable all Mailchimp CSS, so it\'s recommended for WordPress experts only.', 'mailchimp' ); ?> 238 238 </label> 239 239 </div> … … 266 266 </div> 267 267 <label for="mc_custom_style"> 268 <?php esc_html_e( 'Edit the default Mailchimp CSS style.' ); ?>268 <?php esc_html_e( 'Edit the default Mailchimp CSS style.', 'mailchimp' ); ?> 269 269 </label> 270 270 </div> -
mailchimp/tags/2.0.1/includes/class-mailchimp-form-submission.php
r3343086 r3435538 100 100 $interest_groups = get_option( 'mc_interest_groups', array() ); 101 101 102 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 102 103 // Check if request from latest block. 103 104 if ( isset( $_POST['mailchimp_sf_list_id'] ) ) { … … 149 150 $email_type = 'html'; 150 151 } 152 // phpcs:enable WordPress.Security.NonceVerification.Missing 151 153 152 154 $response = $this->subscribe_to_list( … … 252 254 253 255 // Skip if the field is not required and not submitted. 254 if ( ( true !== (bool) $merge_field['required'] && ! isset( $_POST[ $opt ] ) ) || $skip_merge_validation ) { 256 if ( ( true !== (bool) $merge_field['required'] && ! isset( $_POST[ $opt ] ) ) || $skip_merge_validation ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 255 257 continue; 256 258 } 257 259 260 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 258 261 $opt_val = isset( $_POST[ $opt ] ) ? map_deep( stripslashes_deep( $_POST[ $opt ] ), 'sanitize_text_field' ) : ''; 259 262 … … 340 343 foreach ( $interest_groups as $interest_group ) { 341 344 $ig_id = $interest_group['id']; 345 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 342 346 if ( isset( $_POST['group'][ $ig_id ] ) && 'hidden' !== $interest_group['type'] ) { 343 347 switch ( $interest_group['type'] ) { … … 368 372 } 369 373 } 374 // phpcs:enable WordPress.Security.NonceVerification.Missing 370 375 } 371 376 return $groups; … … 545 550 */ 546 551 protected function validate_form_submission() { 552 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 547 553 $spam_message = esc_html__( "We couldn't process your submission as it was flagged as potential spam. Please try again.", 'mailchimp' ); 548 554 // Make sure the honeypot field is set, but not filled (if it is, then it's a spam). … … 580 586 */ 581 587 return apply_filters( 'mailchimp_sf_form_submission_validation', true, $_POST ); 588 // phpcs:enable WordPress.Security.NonceVerification.Missing 582 589 } 583 590 } -
mailchimp/tags/2.0.1/mailchimp.php
r3343086 r3435538 5 5 * Description: Add a Mailchimp signup form block, widget or shortcode to your WordPress site. 6 6 * Text Domain: mailchimp 7 * Version: 2.0. 07 * Version: 2.0.1 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 7.0 … … 68 68 69 69 // Version constant for easy CSS refreshes 70 define( 'MCSF_VER', '2.0. 0' );70 define( 'MCSF_VER', '2.0.1' ); 71 71 72 72 // What's our permission (capability) threshold … … 422 422 **/ 423 423 function mailchimp_sf_save_general_form_settings() { 424 424 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the mailchimp_sf_request_handler() function. 425 425 /*Enable double optin toggle*/ 426 426 if ( isset( $_POST['mc_double_optin'] ) ) { … … 448 448 if ( isset( $_POST['mc_update_existing'] ) ) { 449 449 update_option( 'mc_update_existing', true ); 450 $msg = esc_html__( 'Update existing subscribers turned On!' );450 $msg = esc_html__( 'Update existing subscribers turned On!', 'mailchimp' ); 451 451 admin_notice_success( $msg ); 452 452 } elseif ( get_option( 'mc_update_existing' ) !== false ) { 453 453 update_option( 'mc_update_existing', false ); 454 $msg = esc_html__( 'Update existing subscribers turned Off!' );454 $msg = esc_html__( 'Update existing subscribers turned Off!', 'mailchimp' ); 455 455 admin_notice_success( $msg ); 456 456 } … … 522 522 $msg = esc_html__( 'Successfully Updated your List Subscribe Form Settings!', 'mailchimp' ); 523 523 admin_notice_success( $msg ); 524 // phpcs:enable WordPress.Security.NonceVerification.Missing 524 525 } 525 526 … … 532 533 } 533 534 535 if ( 536 ! current_user_can( MCSF_CAP_THRESHOLD ) || 537 ! isset( $_POST['update_mc_list_id_nonce'] ) || 538 ! wp_verify_nonce( sanitize_key( $_POST['update_mc_list_id_nonce'] ), 'update_mc_list_id_action' ) 539 ) { 540 wp_die( 'Security check failed.' ); 541 } 542 534 543 if ( empty( $_POST['mc_list_id'] ) ) { 535 544 $msg = esc_html__( 'Please choose a valid list', 'mailchimp' ); … … 537 546 return; 538 547 } 539 540 // Simple permission check before going through all this541 if ( ! current_user_can( MCSF_CAP_THRESHOLD ) ) { return; }542 548 543 549 $api = mailchimp_sf_get_api(); … … 606 612 count( $mv ) 607 613 ) . ' ' . 608 esc_html__( 'from your list' ) . ' "' . $list_name . '"<br/><br/>' .614 esc_html__( 'from your list', 'mailchimp' ) . ' "' . $list_name . '"<br/><br/>' . 609 615 esc_html__( 'Now you should either Turn On the Mailchimp Widget or change your options below, then turn it on.', 'mailchimp' ); 610 616 -
mailchimp/tags/2.0.1/readme.txt
r3343086 r3435538 2 2 Contributors: Mailchimp 3 3 Tags: mailchimp, email, newsletter, signup, marketing 4 Tested up to: 6. 85 Stable tag: 2.0. 04 Tested up to: 6.9 5 Stable tag: 2.0.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 76 76 77 77 == Changelog == 78 79 = 2.0.1 - 2026-01-08 = 80 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 81 * **Fixed:** Plugin check plugin errors to improve overall codebase (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 82 * **Changed:** Bump WordPress "tested up to" version 6.9 (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 78 83 79 84 = 2.0.0 - 2025-08-11 = … … 90 95 * **Security:** Bump `http-proxy-middleware` from 2.0.6 to 2.0.9 (props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh) via [#180](https://github.com/mailchimp/wordpress/pull/180)). 91 96 97 = 1.9.1 - 2026-01-08 = 98 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 99 92 100 = 1.9.0 - 2025-06-04 = 93 101 * **Added:** New user synchronization feature that allows syncing WordPress users to Mailchimp (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#156](https://github.com/mailchimp/wordpress/pull/156)). 94 102 * **Changed:** Improved the enqueueing of JavaScript scripts and styles (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#161](https://github.com/mailchimp/wordpress/pull/161)). 103 104 = 1.8.1 - 2026-01-08 = 105 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 95 106 96 107 = 1.8.0 - 2025-05-08 = … … 102 113 * **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)). 103 114 * **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)). 115 116 = 1.7.1 - 2026-01-08 = 117 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 104 118 105 119 = 1.7.0 - 2025-04-08 = … … 116 130 * **Removed:** The "Remove Mailchimp CSS" settings from the Mailchimp settings page (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)). 117 131 * **Security:** Bump `express` from 4.21.0 to 4.21.2 (props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#125](https://github.com/mailchimp/wordpress/pull/125)). 132 133 = 1.6.4 - 2026-01-08 = 134 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 118 135 119 136 = 1.6.3 - 2025-01-30 = -
mailchimp/tags/2.0.1/vendor/composer/autoload_static.php
r3306750 r3435538 12 12 13 13 public static $prefixLengthsPsr4 = array ( 14 'M' => 14 'M' => 15 15 array ( 16 16 'Mailchimp\\WordPress\\' => 20, … … 19 19 20 20 public static $prefixDirsPsr4 = array ( 21 'Mailchimp\\WordPress\\' => 21 'Mailchimp\\WordPress\\' => 22 22 array ( 23 23 0 => __DIR__ . '/../..' . '/src', -
mailchimp/tags/2.0.1/vendor/composer/installed.php
r3343086 r3435538 2 2 'root' => array( 3 3 'name' => 'mailchimp/wordpress', 4 'pretty_version' => '2.0. 0',5 'version' => '2.0. 0.0',6 'reference' => ' f75618e4495ce73463a28d46ef80406839598c45',4 'pretty_version' => '2.0.1', 5 'version' => '2.0.1.0', 6 'reference' => 'cd230223528aa8c17041aa2e7e492caeda37e26d', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'mailchimp/wordpress' => array( 14 'pretty_version' => '2.0. 0',15 'version' => '2.0. 0.0',16 'reference' => ' f75618e4495ce73463a28d46ef80406839598c45',14 'pretty_version' => '2.0.1', 15 'version' => '2.0.1.0', 16 'reference' => 'cd230223528aa8c17041aa2e7e492caeda37e26d', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
mailchimp/trunk/includes/admin/class-mailchimp-user-sync.php
r3343086 r3435538 326 326 'You will need %1$sa Mailchimp plan%2$s that includes %3$d contact.', 327 327 'You will need %1$sa Mailchimp plan%2$s that includes %3$d contacts.', 328 absint( $users_count ) 328 absint( $users_count ), 329 'mailchimp' 329 330 ), 330 331 '<a href="https://mailchimp.com/help/about-mailchimp-pricing-plans/" target="_blank" rel="noopener noreferrer">', -
mailchimp/trunk/includes/admin/templates/settings.php
r3343086 r3435538 95 95 <div class="mailchimp-sf-settings-list-select-button"> 96 96 <input type="hidden" name="mcsf_action" value="update_mc_list_id" /> 97 <?php wp_nonce_field( 'update_mc_list_id_action', 'update_mc_list_id_nonce' ); ?> 97 98 <input type="submit" name="submit" value="<?php esc_attr_e( 'Fetch list settings', 'mailchimp' ); ?>" class="mailchimp-sf-button btn-secondary" /> 98 99 </div> -
mailchimp/trunk/includes/admin/templates/setup-page.php
r3343086 r3435538 225 225 <th class="mailchimp-sf-option-header"> 226 226 <label for="mc_nuke_all_styles"> 227 <?php esc_html_e( 'Remove CSS' ); ?>227 <?php esc_html_e( 'Remove CSS', 'mailchimp' ); ?> 228 228 </label> 229 229 </th> … … 235 235 </div> 236 236 <label for="mc_nuke_all_styles"> 237 <?php esc_html_e( 'This will disable all Mailchimp CSS, so it\'s recommended for WordPress experts only.' ); ?>237 <?php esc_html_e( 'This will disable all Mailchimp CSS, so it\'s recommended for WordPress experts only.', 'mailchimp' ); ?> 238 238 </label> 239 239 </div> … … 266 266 </div> 267 267 <label for="mc_custom_style"> 268 <?php esc_html_e( 'Edit the default Mailchimp CSS style.' ); ?>268 <?php esc_html_e( 'Edit the default Mailchimp CSS style.', 'mailchimp' ); ?> 269 269 </label> 270 270 </div> -
mailchimp/trunk/includes/class-mailchimp-form-submission.php
r3343086 r3435538 100 100 $interest_groups = get_option( 'mc_interest_groups', array() ); 101 101 102 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 102 103 // Check if request from latest block. 103 104 if ( isset( $_POST['mailchimp_sf_list_id'] ) ) { … … 149 150 $email_type = 'html'; 150 151 } 152 // phpcs:enable WordPress.Security.NonceVerification.Missing 151 153 152 154 $response = $this->subscribe_to_list( … … 252 254 253 255 // Skip if the field is not required and not submitted. 254 if ( ( true !== (bool) $merge_field['required'] && ! isset( $_POST[ $opt ] ) ) || $skip_merge_validation ) { 256 if ( ( true !== (bool) $merge_field['required'] && ! isset( $_POST[ $opt ] ) ) || $skip_merge_validation ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 255 257 continue; 256 258 } 257 259 260 // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 258 261 $opt_val = isset( $_POST[ $opt ] ) ? map_deep( stripslashes_deep( $_POST[ $opt ] ), 'sanitize_text_field' ) : ''; 259 262 … … 340 343 foreach ( $interest_groups as $interest_group ) { 341 344 $ig_id = $interest_group['id']; 345 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 342 346 if ( isset( $_POST['group'][ $ig_id ] ) && 'hidden' !== $interest_group['type'] ) { 343 347 switch ( $interest_group['type'] ) { … … 368 372 } 369 373 } 374 // phpcs:enable WordPress.Security.NonceVerification.Missing 370 375 } 371 376 return $groups; … … 545 550 */ 546 551 protected function validate_form_submission() { 552 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the request_handler() function. 547 553 $spam_message = esc_html__( "We couldn't process your submission as it was flagged as potential spam. Please try again.", 'mailchimp' ); 548 554 // Make sure the honeypot field is set, but not filled (if it is, then it's a spam). … … 580 586 */ 581 587 return apply_filters( 'mailchimp_sf_form_submission_validation', true, $_POST ); 588 // phpcs:enable WordPress.Security.NonceVerification.Missing 582 589 } 583 590 } -
mailchimp/trunk/mailchimp.php
r3343086 r3435538 5 5 * Description: Add a Mailchimp signup form block, widget or shortcode to your WordPress site. 6 6 * Text Domain: mailchimp 7 * Version: 2.0. 07 * Version: 2.0.1 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 7.0 … … 68 68 69 69 // Version constant for easy CSS refreshes 70 define( 'MCSF_VER', '2.0. 0' );70 define( 'MCSF_VER', '2.0.1' ); 71 71 72 72 // What's our permission (capability) threshold … … 422 422 **/ 423 423 function mailchimp_sf_save_general_form_settings() { 424 424 // phpcs:disable WordPress.Security.NonceVerification.Missing -- Nonce check is already done in the mailchimp_sf_request_handler() function. 425 425 /*Enable double optin toggle*/ 426 426 if ( isset( $_POST['mc_double_optin'] ) ) { … … 448 448 if ( isset( $_POST['mc_update_existing'] ) ) { 449 449 update_option( 'mc_update_existing', true ); 450 $msg = esc_html__( 'Update existing subscribers turned On!' );450 $msg = esc_html__( 'Update existing subscribers turned On!', 'mailchimp' ); 451 451 admin_notice_success( $msg ); 452 452 } elseif ( get_option( 'mc_update_existing' ) !== false ) { 453 453 update_option( 'mc_update_existing', false ); 454 $msg = esc_html__( 'Update existing subscribers turned Off!' );454 $msg = esc_html__( 'Update existing subscribers turned Off!', 'mailchimp' ); 455 455 admin_notice_success( $msg ); 456 456 } … … 522 522 $msg = esc_html__( 'Successfully Updated your List Subscribe Form Settings!', 'mailchimp' ); 523 523 admin_notice_success( $msg ); 524 // phpcs:enable WordPress.Security.NonceVerification.Missing 524 525 } 525 526 … … 532 533 } 533 534 535 if ( 536 ! current_user_can( MCSF_CAP_THRESHOLD ) || 537 ! isset( $_POST['update_mc_list_id_nonce'] ) || 538 ! wp_verify_nonce( sanitize_key( $_POST['update_mc_list_id_nonce'] ), 'update_mc_list_id_action' ) 539 ) { 540 wp_die( 'Security check failed.' ); 541 } 542 534 543 if ( empty( $_POST['mc_list_id'] ) ) { 535 544 $msg = esc_html__( 'Please choose a valid list', 'mailchimp' ); … … 537 546 return; 538 547 } 539 540 // Simple permission check before going through all this541 if ( ! current_user_can( MCSF_CAP_THRESHOLD ) ) { return; }542 548 543 549 $api = mailchimp_sf_get_api(); … … 606 612 count( $mv ) 607 613 ) . ' ' . 608 esc_html__( 'from your list' ) . ' "' . $list_name . '"<br/><br/>' .614 esc_html__( 'from your list', 'mailchimp' ) . ' "' . $list_name . '"<br/><br/>' . 609 615 esc_html__( 'Now you should either Turn On the Mailchimp Widget or change your options below, then turn it on.', 'mailchimp' ); 610 616 -
mailchimp/trunk/readme.txt
r3343086 r3435538 2 2 Contributors: Mailchimp 3 3 Tags: mailchimp, email, newsletter, signup, marketing 4 Tested up to: 6. 85 Stable tag: 2.0. 04 Tested up to: 6.9 5 Stable tag: 2.0.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 76 76 77 77 == Changelog == 78 79 = 2.0.1 - 2026-01-08 = 80 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 81 * **Fixed:** Plugin check plugin errors to improve overall codebase (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 82 * **Changed:** Bump WordPress "tested up to" version 6.9 (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 78 83 79 84 = 2.0.0 - 2025-08-11 = … … 90 95 * **Security:** Bump `http-proxy-middleware` from 2.0.6 to 2.0.9 (props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh) via [#180](https://github.com/mailchimp/wordpress/pull/180)). 91 96 97 = 1.9.1 - 2026-01-08 = 98 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 99 92 100 = 1.9.0 - 2025-06-04 = 93 101 * **Added:** New user synchronization feature that allows syncing WordPress users to Mailchimp (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#156](https://github.com/mailchimp/wordpress/pull/156)). 94 102 * **Changed:** Improved the enqueueing of JavaScript scripts and styles (props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya) via [#161](https://github.com/mailchimp/wordpress/pull/161)). 103 104 = 1.8.1 - 2026-01-08 = 105 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 95 106 96 107 = 1.8.0 - 2025-05-08 = … … 102 113 * **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)). 103 114 * **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)). 115 116 = 1.7.1 - 2026-01-08 = 117 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 104 118 105 119 = 1.7.0 - 2025-04-08 = … … 116 130 * **Removed:** The "Remove Mailchimp CSS" settings from the Mailchimp settings page (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)). 117 131 * **Security:** Bump `express` from 4.21.0 to 4.21.2 (props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter) via [#125](https://github.com/mailchimp/wordpress/pull/125)). 132 133 = 1.6.4 - 2026-01-08 = 134 * **Fixed:** Provide CSRF hardening for Mailchimp List changes (props [@iamdharmesh](https://github.com/iamdharmesh), [@joemcgill](https://github.com/joemcgill), [@dkotter](https://github.com/dkotter), [@qasumitbagthariya](https://github.com/qasumitbagthariya)). 118 135 119 136 = 1.6.3 - 2025-01-30 = -
mailchimp/trunk/vendor/composer/autoload_static.php
r3306750 r3435538 12 12 13 13 public static $prefixLengthsPsr4 = array ( 14 'M' => 14 'M' => 15 15 array ( 16 16 'Mailchimp\\WordPress\\' => 20, … … 19 19 20 20 public static $prefixDirsPsr4 = array ( 21 'Mailchimp\\WordPress\\' => 21 'Mailchimp\\WordPress\\' => 22 22 array ( 23 23 0 => __DIR__ . '/../..' . '/src', -
mailchimp/trunk/vendor/composer/installed.php
r3343086 r3435538 2 2 'root' => array( 3 3 'name' => 'mailchimp/wordpress', 4 'pretty_version' => '2.0. 0',5 'version' => '2.0. 0.0',6 'reference' => ' f75618e4495ce73463a28d46ef80406839598c45',4 'pretty_version' => '2.0.1', 5 'version' => '2.0.1.0', 6 'reference' => 'cd230223528aa8c17041aa2e7e492caeda37e26d', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'mailchimp/wordpress' => array( 14 'pretty_version' => '2.0. 0',15 'version' => '2.0. 0.0',16 'reference' => ' f75618e4495ce73463a28d46ef80406839598c45',14 'pretty_version' => '2.0.1', 15 'version' => '2.0.1.0', 16 'reference' => 'cd230223528aa8c17041aa2e7e492caeda37e26d', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.