From a2debb7a94b5569c235ce9c2e55fbcc3c0f75a35 Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Fri, 8 Jan 2021 06:44:19 -0700 Subject: [PATCH 1/2] WordPress.Security.NonceVerification.NoNonceVerification: Remove outdated reference from WordPress-VIP-Go ruleset and let inheritance from parent --- WordPress-VIP-Go/ruleset.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/WordPress-VIP-Go/ruleset.xml b/WordPress-VIP-Go/ruleset.xml index 240994bf..3ce4a280 100644 --- a/WordPress-VIP-Go/ruleset.xml +++ b/WordPress-VIP-Go/ruleset.xml @@ -129,11 +129,6 @@ - - - warning - 10 - warning From 77e07fe8fc7a6d959b60a5eabbf99e838055498f Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Fri, 8 Jan 2021 08:10:14 -0700 Subject: [PATCH 2/2] Change reference in test to parent sniff --- WordPress-VIP-Go/ruleset-test.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress-VIP-Go/ruleset-test.inc b/WordPress-VIP-Go/ruleset-test.inc index 4706542e..9996527f 100644 --- a/WordPress-VIP-Go/ruleset-test.inc +++ b/WordPress-VIP-Go/ruleset-test.inc @@ -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;