forked from mirror/_s
WPCS: Allow for typical theme specific file names based on the theme hierarchy.
Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#themes-allow-filename-exceptions
This commit is contained in:
parent
67d6d59235
commit
755619e74d
|
@ -36,6 +36,14 @@
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<!-- Allow for theme specific exceptions to the file name rules based
|
||||||
|
on the theme hierarchy. -->
|
||||||
|
<rule ref="WordPress.Files.FileName">
|
||||||
|
<properties>
|
||||||
|
<property name="is_theme" value="true" />
|
||||||
|
</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