diff --git a/WordPress-VIP-Go/ruleset-test.inc b/WordPress-VIP-Go/ruleset-test.inc index a41c38e8..63c110dc 100644 --- a/WordPress-VIP-Go/ruleset-test.inc +++ b/WordPress-VIP-Go/ruleset-test.inc @@ -346,7 +346,7 @@ $my_notokay_func = 'extract'; $my_notokay_func(); // Error. // WordPressVIPMinimum.Functions.RestrictedFunctions -wp_cache_get_multi(); // Error. + opcache_reset(); // Error. opcache_invalidate( 'test_script.php' ); // Error. opcache_compile_file( $var ); // Error. diff --git a/WordPress-VIP-Go/ruleset-test.php b/WordPress-VIP-Go/ruleset-test.php index 12128b66..1bcd34a5 100644 --- a/WordPress-VIP-Go/ruleset-test.php +++ b/WordPress-VIP-Go/ruleset-test.php @@ -37,7 +37,6 @@ 341 => 1, 342 => 1, 346 => 1, - 349 => 1, 350 => 1, 351 => 1, 352 => 1, diff --git a/WordPressVIPMinimum/Sniffs/Functions/RestrictedFunctionsSniff.php b/WordPressVIPMinimum/Sniffs/Functions/RestrictedFunctionsSniff.php index d12ec448..5c28aef2 100644 --- a/WordPressVIPMinimum/Sniffs/Functions/RestrictedFunctionsSniff.php +++ b/WordPressVIPMinimum/Sniffs/Functions/RestrictedFunctionsSniff.php @@ -25,13 +25,6 @@ class RestrictedFunctionsSniff extends AbstractFunctionRestrictionsSniff { public function getGroups() { $groups = [ - 'wp_cache_get_multi' => [ - 'type' => 'error', - 'message' => '`%s` is not supported on the WordPress.com VIP platform.', - 'functions' => [ - 'wp_cache_get_multi', - ], - ], 'opcache' => [ 'type' => 'error', 'message' => '`%s` is prohibited on the WordPress VIP platform due to memory corruption.', diff --git a/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.inc b/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.inc index c1b6e6d1..bb4871dc 100644 --- a/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.inc +++ b/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.inc @@ -15,8 +15,8 @@ $allowed_html = [ ]; $url = 'http://www.google.ca'; -wp_cache_get_mult(); // Ok - similarly-named function to wp_cache_get_multi(). -wp_cache_get_multi(); // Error. + + opcache_resets(); // Ok - similarly-named custom function to opcache_reset(). opcach_invalidate ( $test_script ); // Ok - similarly-named custom function to opcache_invalidate(). diff --git a/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.php b/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.php index ab1e3334..aca945f6 100644 --- a/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.php +++ b/WordPressVIPMinimum/Tests/Functions/RestrictedFunctionsUnitTest.php @@ -25,7 +25,6 @@ class RestrictedFunctionsUnitTest extends AbstractSniffUnitTest { */ public function getErrorList() { return [ - 19 => 1, 27 => 1, 28 => 1, 29 => 1, diff --git a/WordPressVIPMinimum/ruleset-test.inc b/WordPressVIPMinimum/ruleset-test.inc index 9c25a9f9..66e19b48 100644 --- a/WordPressVIPMinimum/ruleset-test.inc +++ b/WordPressVIPMinimum/ruleset-test.inc @@ -308,7 +308,7 @@ $my_notokay_func = 'extract'; $my_notokay_func(); // Error. // WordPressVIPMinimum.Functions.RestrictedFunctions -wp_cache_get_multi(); // Error. + opcache_reset(); // Error. opcache_invalidate( 'test_script.php' ); // Error. opcache_compile_file( $var ); // Error. diff --git a/WordPressVIPMinimum/ruleset-test.php b/WordPressVIPMinimum/ruleset-test.php index 6f9b8291..e73adb35 100644 --- a/WordPressVIPMinimum/ruleset-test.php +++ b/WordPressVIPMinimum/ruleset-test.php @@ -82,7 +82,6 @@ 303 => 1, 304 => 1, 308 => 1, - 311 => 1, 312 => 1, 313 => 1, 314 => 1,