From b280472d289e8e0a3e071d9ae8bbba1811f575b6 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Thu, 19 Sep 2024 10:55:36 +0300 Subject: [PATCH] Keep the requirements at PHP 5.6 and WP 4.6 until we have a practical reason to bump them --- composer.json | 4 ++-- two-factor.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2fe8e169..8c810486 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "minimum-stability": "dev", "prefer-stable" : true, "require": { - "php": ">=7.2.24|^8" + "php": ">=5.6" }, "require-dev": { "automattic/vipwpcs": "^3.0", @@ -37,7 +37,7 @@ }, "scripts": { "lint": "phpcs", - "lint-compat": "phpcs -p --standard=PHPCompatibilityWP --runtime-set testVersion 7.2- --extensions=php --ignore='tests/,dist/,includes/Yubico/,vendor/,node_modules/' .", + "lint-compat": "phpcs -p --standard=PHPCompatibilityWP --runtime-set testVersion 5.6- --extensions=php --ignore='tests/,dist/,includes/Yubico/,vendor/,node_modules/' .", "lint-phpstan": "phpstan analyse --verbose --memory-limit=1G", "test": "vendor/bin/phpunit", "test:watch": [ diff --git a/two-factor.php b/two-factor.php index fc34c749..6204232d 100644 --- a/two-factor.php +++ b/two-factor.php @@ -12,8 +12,8 @@ * Plugin URI: https://wordpress.org/plugins/two-factor/ * Description: Enable Two-Factor Authentication using time-based one-time passwords, Universal 2nd Factor (FIDO U2F, YubiKey), email, and backup verification codes. * Version: 0.9.1 - * Requires at least: 6.3 - * Requires PHP: 7.2 + * Requires at least: 4.6 + * Requires PHP: 5.6 * Author: WordPress.org Contributors * Author URI: https://github.com/wordpress/two-factor/graphs/contributors * License: GPL-2.0-or-later