Skip to content

Commit

Permalink
Merge pull request #41 from Automattic/increase-wp-php-mins
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed May 16, 2024
2 parents 2557f64 + 4b9b545 commit 002085c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<rule ref="PHPCompatibilityWP"/>
<!-- For help in understanding this testVersion:
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="5.6-"/>
<config name="testVersion" value="7.4-"/>

<!-- Rules: WordPress Coding Standards - see
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
Expand All @@ -39,7 +39,7 @@
<rule ref="WordPress-Docs"/>
<!-- For help in understanding these custom sniff properties:
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="3.1"/>
<config name="minimum_supported_wp_version" value="5.9"/>

<!-- Rules: WordPress VIP - see
https://github.com/Automattic/VIP-Coding-Standards -->
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Rewrite Rules Inspector

Stable tag: 1.3.1
Requires at least: 3.1
Tested up to: 5.7
Requires PHP: 5.6
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Tags: rewrite rules, tools
Contributors: danielbachhuber, automattic, tmoorewp, GaryJ
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
20 changes: 2 additions & 18 deletions rewrite-rules-inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* 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 WP: 3.1.0
* Requires PHP: 7.4
* Requires WP: 5.9.0
*/

define( 'REWRITE_RULES_INSPECTOR_VERSION', '1.3.1' ); // Unused for now.
Expand All @@ -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' );
}

0 comments on commit 002085c

Please sign in to comment.