Skip to content

Commit 8cc2c8e

Browse files
committed
RestrictedFunctions: Remove get_super_admins rule on Go ruleset
1 parent 65b937f commit 8cc2c8e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

WordPress-VIP-Go/ruleset-test.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ opcache_compile_file( $test_script ); // Error.
353353
opcache_​is_​script_​cached( 'test_script.php' ); // Error.
354354
opcache_​get_​status(); // Error.
355355
opcache_​get_​configuration(); // Error.
356-
get_super_admins(); // Error.
356+
get_super_admins(); // OK.
357357
wpcom_vip_irc(); // Error.
358358
flush_rewrite_rules(); // Error.
359359
$wp_rewrite->flush_rules(); // Error.

WordPress-VIP-Go/ruleset-test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
353 => 1,
4545
354 => 1,
4646
355 => 1,
47-
356 => 1,
4847
357 => 1,
4948
358 => 1,
5049
359 => 1,

WordPress-VIP-Go/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@
305305
<rule ref="WordPressVIPMinimum.Functions.RestrictedFunctions.site_option_add_site_option">
306306
<severity>0</severity>
307307
</rule>
308+
<rule ref="WordPressVIPMinimum.Functions.RestrictedFunctions.get_super_admins_get_super_admins">
309+
<severity>0</severity>
310+
</rule>
308311
<rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
309312
<severity>0</severity>
310313
</rule>

0 commit comments

Comments
 (0)