Skip to content

Bump WordPress Tested up to version 7.0#205

Draft
qasumitbagthariya wants to merge 4 commits into
developfrom
wp_7.0
Draft

Bump WordPress Tested up to version 7.0#205
qasumitbagthariya wants to merge 4 commits into
developfrom
wp_7.0

Conversation

@qasumitbagthariya
Copy link
Copy Markdown
Collaborator

Description of the Change

Closes #202

How to test the Change

  1. Run the e2e test using GitHub action to test this PR.
  2. Do thorough manual visual validation, with a strong focus on the admin interface

Changelog Entry

Dev - Bump WordPress "tested up to" version 7.0.
Dev - Bump WordPress minimum supported version to 6.6.

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@qasumitbagthariya qasumitbagthariya self-assigned this Mar 27, 2026
@github-actions github-actions Bot added this to the Future Release milestone Mar 27, 2026
@qasumitbagthariya
Copy link
Copy Markdown
Collaborator Author

qasumitbagthariya commented Mar 27, 2026

QA Update ❌


Issue 1:

When saving the settings, the settings page turns blank for a few seconds, while the “settings saved” notice appears at the top. After a few seconds, the page reloads and displays normally again.

Steps to Reproduce:

  1. Navigate to the settings page
  2. Make any changes
  3. Click on the Save button

Expected Result:

  1. The settings page should reload or update smoothly without showing a blank screen
  2. The success notice should appear without any UI flicker or disruption
Screen.Recording.2026-03-27.at.1.43.24.PM.mov

cc @iamdharmesh

@vikrampm1
Copy link
Copy Markdown
Collaborator

@iamdharmesh this appears to be awaiting your review. It would be good to take a look and move this forward to the next step. Thanks!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates plugin compatibility metadata for upcoming WordPress 7.0 and aligns tooling/CI with the new minimum supported WordPress version. In addition, this PR introduces a small refactor for admin notice rendering and a minor admin UI styling adjustment.

Changes:

  • Bump “Tested up to” to WordPress 7.0 and minimum supported WordPress version to 6.6 (readme + plugin header + PHPCS + CI matrix).
  • Introduce Mailchimp_Admin_Notices for centralized admin notice rendering and convert legacy notice helpers into wrappers.
  • Adjust admin radio button checked styling in admin.css.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
readme.txt Updates “Tested up to” to 7.0.
phpcs.xml Raises minimum_supported_wp_version to 6.6.
mailchimp.php Raises plugin header “Requires at least” to 6.6 and loads new admin notices class.
includes/class-mailchimp-admin.php Initializes the new admin notices system during admin bootstrap.
includes/admin/class-mailchimp-admin-notices.php Adds a new centralized admin notice queue/renderer.
includes/admin/admin-notices.php Converts legacy notice functions into wrappers around the new class.
assets/css/admin.css Tweaks checked radio background styling.
.github/workflows/e2e.yml Updates CI “WP minimum” to run against WordPress 6.6.
Comments suppressed due to low confidence (2)

includes/admin/class-mailchimp-admin-notices.php:116

  • Because the allowed HTML for links permits target, it should also permit rel (and ideally ensure noopener noreferrer when target="_blank" is used). As-is, any provided rel attribute will be stripped by wp_kses, making it harder to avoid reverse-tabnabbing issues.
		$allowed_html = array(
			'a'      => array(
				'href'   => array(),
				'title'  => array(),
				'target' => array(),
			),
			'strong' => array(),

includes/admin/admin-notices.php:30

  • This docblock also uses the placeholder "@SInCE x.x.x". Please update it to the actual version (or remove the placeholder) before merge/release.
 * Display error admin notice.
 * This function is now a wrapper around the Mailchimp_Admin_Notices class, will be deprecated in future versions. Use that class instead.
 *
 * @since 1.7.0
 * @since x.x.x - Moved notice rendering to class-mailchimp-admin-notices.php
 *

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mailchimp.php
Comment thread includes/admin/class-mailchimp-admin-notices.php
Comment thread includes/admin/admin-notices.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility Testing with WordPress 7.0 RC

4 participants