diff --git a/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php b/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php index ec997e30b6ce4..8f68527994263 100644 --- a/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +++ b/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php @@ -133,6 +133,7 @@ 'jetpack_waf_ip_block_list_enabled' => '(bool) Whether the IP block list is enabled', 'jetpack_waf_share_data' => '(bool) Whether the WAF should share basic data with Jetpack', 'jetpack_waf_share_debug_data' => '(bool) Whether the WAF should share debug data with Jetpack', + 'jetpack_waf_automatic_rules_last_updated_timestamp' => '(int) Timestamp of the last time the automatic rules were updated', ), 'response_format' => array( @@ -494,6 +495,7 @@ function ( $newsletter_category ) { 'jetpack_waf_ip_block_list_enabled' => (bool) get_option( 'jetpack_waf_ip_block_list_enabled' ), 'jetpack_waf_share_data' => (bool) get_option( 'jetpack_waf_share_data' ), 'jetpack_waf_share_debug_data' => (bool) get_option( 'jetpack_waf_share_debug_data' ), + 'jetpack_waf_automatic_rules_last_updated_timestamp' => (int) get_option( 'jetpack_waf_automatic_rules_last_updated_timestamp' ), ); if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { diff --git a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php index 5b61ba47f8bce..2af71d3bd935a 100644 --- a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php +++ b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php @@ -273,6 +273,7 @@ public function test_sync_default_options() { 'jetpack_waf_ip_block_list_enabled' => false, 'jetpack_waf_share_data' => true, 'jetpack_waf_share_debug_data' => false, + 'jetpack_waf_automatic_rules_last_updated_timestamp' => 0, ); $theme_mod_key = 'theme_mods_' . get_option( 'stylesheet' );