Skip to content

Commit

Permalink
Don't process options when loading defaults on first install
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Oct 15, 2024
1 parent d111690 commit bcd1338
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ public function set( array $options, bool $first_install = false, bool $overwrit
$options = self::array_merge_recursive( $this->get_all_raw(), $options );
}

$options = $this->process_options( $options );
if ( $first_install === false ) {
$options = $this->process_options( $options );
}

// Whether to update existing options or to add these options only once if they don't exist yet.
if ( $first_install ) {
Expand Down

0 comments on commit bcd1338

Please # to comment.