Skip to content

Commit

Permalink
fix: plugin version after activation (#2447)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzamanbd authored Nov 28, 2024
1 parent bdf70ab commit f6b2f86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/Install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ public function do_install() {

$was_installed_before = get_option( 'dokan_theme_version', false );

update_option( 'dokan_theme_version', DOKAN_PLUGIN_VERSION );

if ( ! $was_installed_before ) {
update_option( 'dokan_theme_version', DOKAN_PLUGIN_VERSION );
update_option( 'dokan_admin_setup_wizard_ready', false );
set_transient( '_dokan_setup_page_redirect', true, 30 );
}
Expand Down

0 comments on commit f6b2f86

Please sign in to comment.