Merge pull request #1125 from jrfnl/feature/check-against-deprecated-wp-functions

WPCS: Verify that no deprecated or removed WP functions are being used.
This commit is contained in:
David A. Kennedy 2017-06-23 11:57:25 -04:00 committed by GitHub
commit 69e08e1e5b
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,15 @@
</properties>
</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. -->
<config name="testVersion" value="5.2-99.0"/>
<rule ref="PHPCompatibility"/>