Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fetch default value if option not in store
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jun 24, 2019
1 parent 2c12692 commit 333db72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-wp-auto-links-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public static function get_default_options(): array
*/
public function get_option(string $name)
{
return $this->options[$name];
return $this->options[$name] ?? self::get_default_options()[$name];
}

/**
Expand Down

0 comments on commit 333db72

Please sign in to comment.