two-factor icon indicating copy to clipboard operation
two-factor copied to clipboard

Add WP and PHP requirements policy

Open kasparsd opened this issue 1 year ago • 3 comments

Is your enhancement related to a problem? Please describe.

Considering the important use-case of this plugin, users should be able to plan for keeping their infrastructure up to date with the requirements of this plugin.

Proposed Solution

Add a section to the readme.txt that documents the update policy for WP core and PHP requirements.

See #641 for relevant discussion.

= PHP and WordPress Version Support =

This plugin supports the last two major versions of WordPress and <a href="https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/">the minimum PHP version</a> supported by those WordPress versions.

Designs

No impact.

Describe alternatives you've considered

No response

Please confirm that you have searched existing issues in this repository.

Yes

kasparsd avatar Dec 02 '24 10:12 kasparsd

@jeffpaul Can you please suggest the exact approach and wording here?

kasparsd avatar Dec 02 '24 10:12 kasparsd

Perhaps something in the == Frequently Asked Questions == section like:

= What PHP and WordPress versions does the Two-Factor plugin support? =

This plugin supports the last two major versions of WordPress and <a href="https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/">the minimum PHP version</a> supported by those WordPress versions.

As of today, that would allow us to bump the WordPress minimum to 6.7: https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/two-factor.php#L15 https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/.github/workflows/test.yml#L82

and bump the PHP minimum to 7.2: https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/two-factor.php#L16 https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/composer.json#L15 https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/composer.json#L24 https://github.com/WordPress/two-factor/blob/fe16f23875a5aeeb4d76f24f4b501674460f6a07/.github/workflows/test.yml#L70

jeffpaul avatar Apr 30 '25 21:04 jeffpaul

Yes, that would be great! Can you open a pull request with that or would you prefer that somebody else works on that @jeffpaul?

kasparsd avatar May 01 '25 18:05 kasparsd