Updated sanitization and escape functions on phpcs ruleset.xml

This commit is contained in:
Claudio Sanches 2017-11-13 17:30:22 -02:00
parent ec11eb8ef1
commit 8e52dbaf26
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@
<rule ref="WordPress.VIP.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array" value="wc_clean" />
<property name="customSanitizingFunctions" type="array" value="wc_clean,wc_sanitize_tooltip,wc_format_decimal,wc_stock_amount" />
</properties>
</rule>
<rule ref="WordPress.XSS.EscapeOutput">
<properties>
<property name="customEscapingFunctions" type="array" value="wc_help_tip,wc_sanitize_tooltip,wc_format_decimal" />
</properties>
</rule>
</ruleset>