Skip to content

Commit

Permalink
Add jetpack_waf_automatic_rules_last_updated_timestamp to the sync op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
nateweller committed Jul 26, 2024
1 parent 9ed7959 commit 22023ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 22023ae

Please sign in to comment.