Skip to content

Commit

Permalink
set autoload no for stackable_current_version_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed May 2, 2024
1 parent 3d5fe72 commit cb51ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ function stackable_version_upgrade_check() {
// This is triggered only when V1 was previously activated, and this is the first time V2 is activated.
// Will not trigger after successive V2 activations.
if ( get_option( 'stackable_activation_date' ) && ! get_option( 'stackable_current_version_installed' ) ) {
update_option( 'stackable_current_version_installed', '1' );
update_option( 'stackable_current_version_installed', '1', 'no' );
}

// Always check the current version installed. Trigger if it changes.
if ( get_option( 'stackable_current_version_installed' ) !== STACKABLE_VERSION ) {
do_action( 'stackable_version_upgraded', get_option( 'stackable_current_version_installed' ), STACKABLE_VERSION );
update_option( 'stackable_current_version_installed', STACKABLE_VERSION );
update_option( 'stackable_current_version_installed', STACKABLE_VERSION, 'no' );
}
}
add_action( 'admin_menu', 'stackable_version_upgrade_check', 1 );
Expand Down

0 comments on commit cb51ff9

Please sign in to comment.