Skip to content

Commit

Permalink
Merge pull request #607 from Automattic/rebecca/cleanup_605
Browse files Browse the repository at this point in the history
WordPress.Security.NonceVerification.NoNonceVerification: Remove outdated reference from WordPress-VIP-Go ruleset and let inheritance from parent
  • Loading branch information
rebeccahum authored Jan 13, 2021
2 parents 4e334c1 + 77e07fe commit 0fb90dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion WordPress-VIP-Go/ruleset-test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $external_resource = file_get_contents( $test ); // Warning + Message.
$file_content = file_get_contents( 'my-file.svg' ); // Ok.
wpcom_vip_file_get_contents( $bar ); // Ok.

// WordPress.Security.NonceVerification.NoNonceVerification
// WordPress.Security.NonceVerification (inherited from parent)
function bar_foo() {
if ( ! isset( $_POST['test'] ) ) { // Error.
return;
Expand Down
5 changes: 0 additions & 5 deletions WordPress-VIP-Go/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@


<!-- Warnings and other things -->
<rule ref="WordPress.Security.NonceVerification.NoNonceVerification">
<!-- Needs a manual check -->
<type>warning</type>
<severity>10</severity>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized">
<!-- Needs a manual check -->
<type>warning</type>
Expand Down

0 comments on commit 0fb90dc

Please sign in to comment.