Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Dec 2, 2024
1 parent 8fdf931 commit 3cd4da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'" );
Expand Down
2 changes: 1 addition & 1 deletion src/Installation/Activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'" );
Expand Down

0 comments on commit 3cd4da9

Please sign in to comment.