From 8cc2c8ea55344fea57fe1acea50656742096ca0f Mon Sep 17 00:00:00 2001 From: rebeccahum <16962021+rebeccahum@users.noreply.github.com> Date: Thu, 2 Jul 2020 12:49:47 -0600 Subject: [PATCH] RestrictedFunctions: Remove get_super_admins rule on Go ruleset --- WordPress-VIP-Go/ruleset-test.inc | 2 +- WordPress-VIP-Go/ruleset-test.php | 1 - WordPress-VIP-Go/ruleset.xml | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/WordPress-VIP-Go/ruleset-test.inc b/WordPress-VIP-Go/ruleset-test.inc index ef4c8ff4..d6992fe9 100644 --- a/WordPress-VIP-Go/ruleset-test.inc +++ b/WordPress-VIP-Go/ruleset-test.inc @@ -353,7 +353,7 @@ opcache_compile_file( $test_script ); // Error. opcache_​is_​script_​cached( 'test_script.php' ); // Error. opcache_​get_​status(); // Error. opcache_​get_​configuration(); // Error. -get_super_admins(); // Error. +get_super_admins(); // OK. wpcom_vip_irc(); // Error. flush_rewrite_rules(); // Error. $wp_rewrite->flush_rules(); // Error. diff --git a/WordPress-VIP-Go/ruleset-test.php b/WordPress-VIP-Go/ruleset-test.php index 1370e6ba..28493bca 100644 --- a/WordPress-VIP-Go/ruleset-test.php +++ b/WordPress-VIP-Go/ruleset-test.php @@ -44,7 +44,6 @@ 353 => 1, 354 => 1, 355 => 1, - 356 => 1, 357 => 1, 358 => 1, 359 => 1, diff --git a/WordPress-VIP-Go/ruleset.xml b/WordPress-VIP-Go/ruleset.xml index 1e36f791..57c751a8 100644 --- a/WordPress-VIP-Go/ruleset.xml +++ b/WordPress-VIP-Go/ruleset.xml @@ -305,6 +305,9 @@ 0 + + 0 + 0