forked from mirror/_s
WPCS: Verify that no deprecated or removed WP functions are being used.
Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#minimum-wp-version-to-check-for-usage-of-deprecated-functions-and-function-parameters
This commit is contained in:
parent
1f9ad8893d
commit
e475309cd5
|
@ -45,6 +45,15 @@
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<!-- Verify that no WP functions are used which are deprecated or have been removed.
|
||||||
|
The minimum version set here should be in line with the minimum WP version
|
||||||
|
as set in the "Requires at least" tag in the readme.txt file. -->
|
||||||
|
<rule ref="WordPress.WP.DeprecatedFunctions">
|
||||||
|
<properties>
|
||||||
|
<property name="minimum_supported_version" value="4.0" />
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
|
||||||
<!-- Include sniffs for PHP cross-version compatibility. -->
|
<!-- Include sniffs for PHP cross-version compatibility. -->
|
||||||
<config name="testVersion" value="5.2-99.0"/>
|
<config name="testVersion" value="5.2-99.0"/>
|
||||||
<rule ref="PHPCompatibility"/>
|
<rule ref="PHPCompatibility"/>
|
||||||
|
|
Reference in New Issue