| @@ -4,18 +4,18 @@ | ||
| 4 | 4 | |
| 5 | 5 | defined( 'ABSPATH' ) || exit; |
| 6 | 6 | |
| 7 | 7 | class Activator { |
| 8 | - public const INSTALLATION_OPTION_NAME = 'hts_new_installation'; | |
| 8 | + | |
| 9 | 9 | /** |
| 10 | 10 | * @return void |
| 11 | 11 | */ |
| 12 | - public static function activate(): void { | |
| 13 | - $options = new DefaultOptions(); | |
| 14 | - $options->add_options(); | |
| 12 | + public static function activate(): void { | |
| 13 | + $options = new DefaultOptions(); | |
| 14 | + $options->add_options(); | |
| 15 | 15 | |
| 16 | - self::update_installation_state_on_activation(); | |
| 17 | - } | |
| 16 | + self::update_installation_state_on_activation(); | |
| 17 | + } | |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Saves installation state. |
| 21 | 21 | * |
| @@ -20,12 +20,12 @@ | ||
| 20 | 20 | * Saves installation state. |
| 21 | 21 | * |
| 22 | 22 | * @return void |
| 23 | 23 | */ |
| 24 | - public static function update_installation_state_on_activation(): void { | |
| 25 | - $installation_state = get_option( self::INSTALLATION_OPTION_NAME, false ); | |
| 24 | + public static function update_installation_state_on_activation(): void { | |
| 25 | + $installation_state = get_option( 'hts_new_installation', false ); | |
| 26 | 26 | |
| 27 | - if ( $installation_state !== 'old' ) { | |
| 28 | - add_option( self::INSTALLATION_OPTION_NAME, 'new' ); | |
| 29 | - } | |
| 30 | - } | |
| 27 | + if ( $installation_state !== 'old' ) { | |
| 28 | + add_option( 'hts_new_installation', 'new' ); | |
| 29 | + } | |
| 30 | + } | |
| 31 | 31 | } |