From 3cd4da942a29be3a97d99b404b88ac6e075f1474 Mon Sep 17 00:00:00 2001 From: Torben Lundsgaard Date: Mon, 2 Dec 2024 16:26:17 +0100 Subject: [PATCH] Fix deprecation --- inc/main.php | 2 +- src/Installation/Activation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/main.php b/inc/main.php index b789b43..53f9663 100644 --- a/inc/main.php +++ b/inc/main.php @@ -62,7 +62,7 @@ function gtmkit_plugin_activation(): void { function gtmkit_plugin_deactivation(): void { if ( function_exists( 'wp_set_option_autoload' ) ) { - wp_set_option_autoload( 'gtmkit', 'no' ); + wp_set_option_autoload( 'gtmkit', true ); } else { global $wpdb; $wpdb->query( "UPDATE $wpdb->options SET autoload = 'no' WHERE option_name = 'gtmkit'" ); diff --git a/src/Installation/Activation.php b/src/Installation/Activation.php index e0f40f5..9d143f5 100644 --- a/src/Installation/Activation.php +++ b/src/Installation/Activation.php @@ -62,7 +62,7 @@ public function set_first_install_options(): void { public function set_autoload_on_options(): void { if ( function_exists( 'wp_set_option_autoload' ) ) { - wp_set_option_autoload( 'gtmkit', 'yes' ); + wp_set_option_autoload( 'gtmkit', true ); } else { global $wpdb; $wpdb->query( "UPDATE $wpdb->options SET autoload = 'yes' WHERE option_name = 'gtmkit'" );