PluginProbe
Hostinger Tools / 3.0.21
Hostinger Tools v3.0.21
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
← All changes | includes/Activator.php +20 -20 3.0.743.0.21 View file →
@@ -4,28 +4,28 @@
4 4
5 5 defined( 'ABSPATH' ) || exit;
6 6
7 7 class Activator {
8 - public const INSTALLATION_OPTION_NAME = 'hts_new_installation';
9 - /**
10 - * @return void
11 - */
12 - public static function activate(): void {
13 - $options = new DefaultOptions();
14 - $options->add_options();
8 + public const INSTALLATION_OPTION_NAME = 'hts_new_installation';
9 + /**
10 + * @return void
11 + */
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 - /**
20 - * Saves installation state.
21 - *
22 - * @return void
23 - */
24 - public static function update_installation_state_on_activation(): void {
25 - $installation_state = get_option( self::INSTALLATION_OPTION_NAME, false );
19 + /**
20 + * Saves installation state.
21 + *
22 + * @return void
23 + */
24 + public static function update_installation_state_on_activation(): void {
25 + $installation_state = get_option( self::INSTALLATION_OPTION_NAME, 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( self::INSTALLATION_OPTION_NAME, 'new' );
29 + }
30 + }
31 31 }