Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions 10up-Default/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@

<!-- Allow WP global modification -->
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited"/>

<!-- This nonce sniff almost never works right -->
<exclude name="WordPress.Security.NonceVerification.Missing"/>
</rule>

<!-- Sets the minimum supported WP version to 4.7, which is over a year old. -->
Expand All @@ -87,6 +84,24 @@
<!-- Make sure that the proper escaping functions are being used -->
<rule ref="WordPressVIPMinimum.Security.ProperEscapingFunction"/>


<rule ref="WP.Security.ValidatedSanitizedInput">
<properties>
<property name="customUnslashingSanitizingFunctions" type="array">
<!--
Allow checking nonces without sanitization.

WordPress nonces do not include any characters requiring
slashes so can be considered unslashed. The verification
is a character by character comparison to a fixed value
so sanitization is not required as only a valid nonce
string should be allowed to pass.
-->
<element value="wp_verify_nonce" />
</property>
</properties>
</rule>

<!-- Loads the PHP Compatibility ruleset. -->
<rule ref="PHPCompatibilityWP" />

Expand Down