Plugin Directory

Changeset 3415324


Ignore:
Timestamp:
12/09/2025 12:00:58 PM (2 months ago)
Author:
2wstechnologies
Message:

fix uninstall bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • askeet/trunk/askeet.php

    r3414462 r3415324  
    1515}
    1616
     17// Define plugin version constant globally (needed for both activation and deactivation hooks)
     18if (!defined('ASKEET_VERSION')) {
     19    define('ASKEET_VERSION', '2.2');
     20}
     21
    1722// 2. Activation hook: only generate install_id if missing, log activation event
    1823register_activation_hook(__FILE__, function() {
     
    3742        update_option('askeet_install_id', wp_generate_password(24, false));
    3843    }
    39     define('ASKEET_VERSION', '2.2');
    4044
    4145    $install_id = get_option('askeet_install_id');
Note: See TracChangeset for help on using the changeset viewer.