Plugin Directory

Changeset 220248


Ignore:
Timestamp:
03/20/2010 09:46:49 PM (16 years ago)
Author:
jkmassel
Message:

small oops fix

Location:
underconstruction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • underconstruction/tags/1.04/underConstruction.php

    r220245 r220248  
    155155    }
    156156   
    157     function uc_delete()
    158     {
    159         //get rid of everything
    160         delete_option('underConstructionHTML');
    161         delete_option('underConstructionActivationStatus');
    162         delete_option('underConstructionCustomText');
    163         delete_option('underConstructionDisplayOption');
    164         delete_option('underConstructionHTTPStatus');
    165         delete_option('underConstructionArchive');
    166     }
    167    
    168157    function pluginIsActive()
    169158    {
     
    268257register_activation_hook(__FILE__, array($underConstructionPlugin, 'uc_activate'));
    269258register_deactivation_hook(__FILE__, array($underConstructionPlugin, 'uc_deactivate'));
    270 register_uninstall_hook(__FILE__, array($underConstructionPlugin, 'uc_delete'));
     259register_uninstall_hook(__FILE__, 'underConstructionPlugin_delete');
    271260
    272261
    273262add_action('admin_init', array($underConstructionPlugin, 'underConstructionAdminInit'));
    274263add_action('admin_menu', array($underConstructionPlugin, 'uc_adminMenu'));
     264
     265function underConstructionPlugin_delete()
     266{
     267    delete_option('underConstructionArchive');
     268}
    275269
    276270
  • underconstruction/trunk/underConstruction.php

    r220236 r220248  
    155155    }
    156156   
    157     function uc_delete()
    158     {
    159         //get rid of everything
    160         delete_option('underConstructionHTML');
    161         delete_option('underConstructionActivationStatus');
    162         delete_option('underConstructionCustomText');
    163         delete_option('underConstructionDisplayOption');
    164         delete_option('underConstructionHTTPStatus');
    165         delete_option('underConstructionArchive');
    166     }
    167    
    168157    function pluginIsActive()
    169158    {
     
    268257register_activation_hook(__FILE__, array($underConstructionPlugin, 'uc_activate'));
    269258register_deactivation_hook(__FILE__, array($underConstructionPlugin, 'uc_deactivate'));
    270 register_uninstall_hook(__FILE__, array($underConstructionPlugin, 'uc_delete'));
     259register_uninstall_hook(__FILE__, 'underConstructionPlugin_delete');
    271260
    272261
    273262add_action('admin_init', array($underConstructionPlugin, 'underConstructionAdminInit'));
    274263add_action('admin_menu', array($underConstructionPlugin, 'uc_adminMenu'));
     264
     265function underConstructionPlugin_delete()
     266{
     267    delete_option('underConstructionArchive');
     268}
    275269
    276270
Note: See TracChangeset for help on using the changeset viewer.