Skip to content

prepare wp 7.1 release - #900

Merged
masteradhoc merged 10 commits into
WordPress:masterfrom
masteradhoc:php-wp-upgrade
Aug 21, 2026
Merged

prepare wp 7.1 release#900
masteradhoc merged 10 commits into
WordPress:masterfrom
masteradhoc:php-wp-upgrade

Conversation

@masteradhoc

@masteradhoc masteradhoc commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator
  • This will be on-hold until WordPress 7.1 is released!

What?

Drops support for PHP 7.2 and 7.3, raises the minimum PHP version to 7.4 and the minimum WordPress version to 7.0.

Fixes #751
Fixes #960

Why?

Per the plugin's version support policy with the release of WordPress 7.1 we'll be dropping the support for WP 6.9.
With WordPress 7.0 and 7.1 be the only supported versions we can enforce PHP 7.4 as its minimum php version.

How?

  • Updated Requires PHP header in two-factor.php and readme.txt from 7.2 to 7.4
  • Updated Requires at least header in two-factor.php and readme.txt from 6.9 to 7.0
  • Updated Tested up to in readme.txt to 7.1
  • Updated phpcs.xml.dist: testVersion from 7.2- to 7.4-
  • Removed PHP 7.2 and 7.3 from the CI test matrix in .github/workflows/test.yml, removed the four now-redundant exclude entries, and updated the tested WP version from 6.9 to 7.0
  • Updated AGENTS.md to reflect the new minimum PHP version

Use of AI Tools

AI assistance: Yes
Tool(s): GitHub Copilot
Model(s): Claude Sonnet 4.6
Used for: Generating the changes across configuration files; all changes were reviewed and verified by me.

Screenshots or screencast

N/A — no UI changes.

Changelog Entry

Development Update - Drop PHP 7.2 and 7.3 support; raise minimum PHP version to 7.4 and minimum WordPress version to 7.0.

Open WordPress Playground Preview

@masteradhoc masteradhoc self-assigned this Jun 13, 2026
@masteradhoc masteradhoc added this to the Future Release milestone Jun 13, 2026
@masteradhoc
masteradhoc marked this pull request as ready for review July 17, 2026 05:49
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: masteradhoc <masteradhoc@git.wordpress.org>
Co-authored-by: peterwilsoncc <peterwilsoncc@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@masteradhoc
masteradhoc requested review from georgestephanis, kasparsd and peterwilsoncc and a lite review from Copilot August 14, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the plugin’s declared and enforced minimum supported WordPress/PHP versions, aligning metadata, tooling, and CI.

Changes:

  • Bumped minimum WordPress requirement to 7.0 and PHP requirement to 7.4 across plugin headers and docs
  • Updated Composer and PHPCS configuration to target PHP 7.4+
  • Adjusted GitHub Actions test matrix to drop PHP 7.2/7.3 and add WordPress 7.0

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
two-factor.php Updates plugin header minimum WordPress and PHP requirements
readme.txt Updates plugin readme requirements/tested versions and adds PHP requirement
phpcs.xml.dist Updates PHPCompatibilityWP target version range to 7.4+
composer.json Updates Composer PHP platform and runtime constraint to 7.4+
AGENTS.md Updates documented code standards to PHP 7.4+
.github/workflows/test.yml Updates CI matrix to remove older PHP versions and add WP 7.0

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread readme.txt

@peterwilsoncc peterwilsoncc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I've added a couple of notes inline re: duplicate headers.

They're opinated but I run these tests on my personal plugins, but it's fairly easy to change the opinions for your plugins preference.

Comment thread readme.txt Outdated
Comment thread readme.txt Outdated
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml Outdated
Co-authored-by: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com>
@masteradhoc

Copy link
Copy Markdown
Collaborator Author

Thanks @peterwilsoncc & @jeffpaul - i think we're good to go here.
Can you recheck and accept/merge the PR?

@peterwilsoncc peterwilsoncc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Brian, this looks good to me.

@masteradhoc
masteradhoc merged commit dc64756 into WordPress:master Aug 21, 2026
37 checks passed
@masteradhoc masteradhoc modified the milestones: Future Release, 0.17.0 Aug 21, 2026
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.

Test compatibility with WordPress 7.1 Dropping support for PHP 7.2 and 7.3

4 participants