Skip to content

Commit

Permalink
WAF: ensure the mode option is set during activation
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller committed Oct 27, 2024
1 parent 0859d95 commit bf57d06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/packages/waf/src/class-waf-runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ public static function activate() {
add_option( Waf_Rules_Manager::VERSION_OPTION_NAME, Waf_Rules_Manager::RULES_VERSION );
}

$mode = get_option( self::MODE_OPTION_NAME );
if ( ! $mode ) {
add_option( self::MODE_OPTION_NAME, 'normal' );
}

add_option( self::SHARE_DATA_OPTION_NAME, true );

self::initialize_filesystem();
Expand Down

0 comments on commit bf57d06

Please sign in to comment.