Skip to content

Commit

Permalink
Raise PHP and WP requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 13, 2024
1 parent 3acab78 commit 52aa1c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cyr-to-lat.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Description: Convert Non-Latin characters in post and term slugs to Latin characters. Useful for creating human-readable URLs. Based on the original plugin by Anton Skorobogatov.
* Version: 6.2.0
* Requires at least: 5.1
* Requires PHP: 7.0.0
* Requires PHP: 7.2.0
* Author: Sergey Biryukov, Mikhail Kobzarev, Igor Gergel
* Author URI: https://profiles.wordpress.org/sergeybiryukov/
* License: GPL v2 or later
Expand Down
9 changes: 5 additions & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

<!-- What to scan -->
<file>.</file>
<!-- Exclude all dirs except needed -->
<exclude-pattern>^(?!.*/cyr2lat).*</exclude-pattern>
<exclude-pattern>*/\.codeception/*</exclude-pattern>
<exclude-pattern>*/\.github/*</exclude-pattern>
<exclude-pattern>*/\.make/*</exclude-pattern>
<exclude-pattern>*/\.wordpress-org/*</exclude-pattern>
Expand All @@ -19,18 +22,16 @@
<arg value="sp"/><!-- Show sniff and progress -->
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<arg name="extensions" value="php"/>
<arg name="parallel" value="12"/><!-- Enables parallel processing when available for faster results. -->
<arg name="cache" value=".phpcs.cache"/>

<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcsstandards/phpcsextra,vendor/phpcsstandards/phpcsutils,vendor/wp-coding-standards/wpcs"/>
<config name="testVersion" value="7.0-"/>
<config name="testVersion" value="7.2-"/>

<!-- Rules: Check PHP version compatibility -->
<rule ref="PHPCompatibility"/>
<rule ref="PHPCompatibilityWP"/>

<!-- Rules: WordPress Coding Standards -->
<config name="minimum_supported_wp_version" value="5.0"/>
<config name="minimum_supported_wp_version" value="5.3"/>
<rule ref="WordPress">
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.Found"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed"/>
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Cyr-To-Lat ===
Contributors: SergeyBiryukov, mihdan, kaggdesign, karevn, webvitaly
Tags: cyrillic, slugs, translation, transliteration
Requires at least: 5.1
Requires at least: 5.3
Tested up to: 6.7
Stable tag: 6.2.0
Requires PHP: 7.0.0
Requires PHP: 7.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -221,6 +221,12 @@ Yes, you can!

== Changelog ==

= 6.2.0 (13.11.2024) =
* Dropped support for PHP 7.0 and 7.1. The minimum required PHP version is now 7.2.
* The minimum required WordPress version is now 5.3.
* Tested with WordPress 6.7.
* Tested with WooCommerce 9.4.

= 6.1.0 (09.03.2024) =
* Tested with WordPress 6.5.
* Tested with WooCommerce 8.6.
Expand Down

0 comments on commit 52aa1c5

Please sign in to comment.