From e27f84fe4cd03aad99ddf5f95a6ba7a6798bdf83 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Thu, 16 May 2024 18:16:31 +0200 Subject: [PATCH 1/3] Increase minimum PHP version to 7.4 --- .phpcs.xml.dist | 2 +- README.md | 2 +- composer.json | 1 + rewrite-rules-inspector.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index 33e8637..cb797ca 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -30,7 +30,7 @@ - + diff --git a/README.md b/README.md index 8ef1398..ddd3897 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Stable tag: 1.3.1 Requires at least: 3.1 Tested up to: 5.7 -Requires PHP: 5.6 +Requires PHP: 7.4 License: GPLv2 or later Tags: rewrite rules, tools Contributors: danielbachhuber, automattic, tmoorewp, GaryJ diff --git a/composer.json b/composer.json index 1594eb8..0e203f7 100644 --- a/composer.json +++ b/composer.json @@ -5,6 +5,7 @@ "homepage": "https://wordpress.org/plugins/rewrite-rules-inspector/", "license": "GPL-2.0-or-later", "require": { + "php": ">=7.4", "composer/installers": "^1.0" } } diff --git a/rewrite-rules-inspector.php b/rewrite-rules-inspector.php index 2421fac..6648c66 100644 --- a/rewrite-rules-inspector.php +++ b/rewrite-rules-inspector.php @@ -18,7 +18,7 @@ * License: GPL-2.0-or-later * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * GitHub Plugin URI: https://github.com/Automattic/Rewrite-Rules-Inspector - * Requires PHP: 5.6 + * Requires PHP: 7.4 * Requires WP: 3.1.0 */ From f557c43743ea8a4efba83e8863c29382f7c3deb9 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Thu, 16 May 2024 18:19:43 +0200 Subject: [PATCH 2/3] Increase minimum WP supported version to 5.9 --- .phpcs.xml.dist | 2 +- README.md | 2 +- rewrite-rules-inspector.php | 18 +----------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index cb797ca..eb8b25a 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -39,7 +39,7 @@ - + diff --git a/README.md b/README.md index ddd3897..46d0bfe 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Rewrite Rules Inspector Stable tag: 1.3.1 -Requires at least: 3.1 +Requires at least: 5.9 Tested up to: 5.7 Requires PHP: 7.4 License: GPLv2 or later diff --git a/rewrite-rules-inspector.php b/rewrite-rules-inspector.php index 6648c66..1c461f5 100644 --- a/rewrite-rules-inspector.php +++ b/rewrite-rules-inspector.php @@ -19,7 +19,7 @@ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * GitHub Plugin URI: https://github.com/Automattic/Rewrite-Rules-Inspector * Requires PHP: 7.4 - * Requires WP: 3.1.0 + * Requires WP: 5.9.0 */ define( 'REWRITE_RULES_INSPECTOR_VERSION', '1.3.1' ); // Unused for now. @@ -42,19 +42,3 @@ function() { $rewrite_rules_inspector->run(); } ); - -add_action( 'init', 'rri_load_textdomain' ); -/** - * Load plugin textdomain. - * - * Only look for WP_LANG_DIR . '/plugins/rewrite-rules-inspector-' . $locale . '.mo'. - * WP_LANG_DIR is usually WP_CONTENT_DIR . '/languages/'. - * No other fallback location is supported. - * - * This can be removed once minimum supported WordPress is 4.6 or later. - * - * @since 1.3.1 - */ -function rri_load_textdomain() { - load_plugin_textdomain( 'rewrite-rules-inspector' ); -} From 4b9b5456093eb433eda47915ccf278742cb3981a Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Thu, 16 May 2024 18:34:48 +0200 Subject: [PATCH 3/3] Increase Tested up to version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46d0bfe..2a95399 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Stable tag: 1.3.1 Requires at least: 5.9 -Tested up to: 5.7 +Tested up to: 6.5 Requires PHP: 7.4 License: GPLv2 or later Tags: rewrite rules, tools