diff --git a/WordPress-VIP-Go/ruleset-test.inc b/WordPress-VIP-Go/ruleset-test.inc index bd7e3de6..b0942dd7 100644 --- a/WordPress-VIP-Go/ruleset-test.inc +++ b/WordPress-VIP-Go/ruleset-test.inc @@ -577,3 +577,13 @@ $_SERVER["REMOTE_ADDR"]; // Error. // WordPress.CodeAnalysis.AssignmentInTernaryCondition $var = ($a = 123) ? $a : 0; // Warning. + +// WordPress.WP.CronInterval +function my_add_weekly( $schedules ) { + $schedules['every_30_seconds'] = array( + 'interval' => 30, + 'display' => __( 'Once every 30 seconds' ) + ); + return $schedules; +} +add_filter( 'cron_schedules', 'my_add_weekly'); // Warning. diff --git a/WordPress-VIP-Go/ruleset-test.php b/WordPress-VIP-Go/ruleset-test.php index d8701db4..51e19267 100644 --- a/WordPress-VIP-Go/ruleset-test.php +++ b/WordPress-VIP-Go/ruleset-test.php @@ -232,6 +232,7 @@ 550 => 1, 556 => 1, 579 => 1, + 589 => 1, ], 'messages' => [ 7 => [ diff --git a/WordPress-VIP-Go/ruleset.xml b/WordPress-VIP-Go/ruleset.xml index 35591e4a..887306be 100644 --- a/WordPress-VIP-Go/ruleset.xml +++ b/WordPress-VIP-Go/ruleset.xml @@ -232,6 +232,12 @@ 3 + + + + + + @@ -254,4 +260,5 @@ 0 +