Plugin Directory

Changeset 1977408


Ignore:
Timestamp:
11/20/2018 12:46:30 PM (7 years ago)
Author:
centrical
Message:

the plugin will now remember the account ID after deactivation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • instant/trunk/unless.php

    r1955596 r1977408  
    7373            function unless_install()
    7474                {
    75                     add_option("unless_data", '', '', 'yes');
     75                    if ( !get_option('unless_data') ) {
     76                        add_option("unless_data", '', '', 'yes');
     77                    }
    7678                }
    7779
    78             // Runs on plugin deactivation
    79             register_deactivation_hook( __FILE__, 'unless_remove' );
     80            // Runs on plugin uninstall
     81            register_uninstall_hook( __FILE__, 'unless_remove' );
    8082            function unless_remove()
    8183                {
Note: See TracChangeset for help on using the changeset viewer.