Closed dd32 closed 5 months ago
Thanks @dd32. This does seem like something the Plugin Check plugin should account for. It would be great to get some tests added for this functionality if you have time.
Additionally, it seems this issue currently effects the current version of the plugin published to the .org repo, which is currently in the legacy-plugin
branch of the repo, so applying a similar change there may be needed until https://github.com/WordPress/plugin-check/issues/283 is resolved and version 1.0.0 can be released.
It would be great to get some tests added for this functionality if you have time.
Feel free to add them, as I said, I couldn't figure out how to in the overcomplicated abstractions.
Additionally, it seems this issue currently effects the current version of the plugin published to the .org repo, which is currently in the
legacy-plugin
branch of the repo, so applying a similar change there may be needed until https://github.com/WordPress/plugin-check/issues/283 is resolved and version 1.0.0 can be released.
Probably, but I don't think that's a priority, since AFAIK the legacy version should be abandoned in its entirety based on how things have been moving
Some PHPCS rules are WordPress version dependent, only being triggered for older (or newer) versions of WordPress.
One such rule is this, which is triggered unless the minimum wp is set to 6.2:
WPCS allows setting the minimum required WP version, which this PR implements https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#setting-minimum-supported-wp-version-from-the-command-line-wordpresscs-0140
I've not added a unit test for this, as I wasn't immediately able to figure out how to do so, but this PR works in my initial testing.