Plugin Directory

Changeset 410637


Ignore:
Timestamp:
07/16/2011 12:53:40 PM (14 years ago)
Author:
mdbitz
Message:

remove deactivate hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-amazon-associate/trunk/wordpress_amazon_associate.php

    r410533 r410637  
    4545spl_autoload_register(array('WPAA', 'autoload'));
    4646$wpaa = new WPAA();
    47 
    48 // deactivation
    49 register_deactivation_hook( __FILE__, 'wpaa_deactivate');
    50 
    51 /**
    52  * send site uninstall information
    53  */
    54 function wpaa_deactivate() {
    55     if( function_exists('curl_init') ) {
    56         $handle   = curl_init('http://mdbitz.com/installs.php?app=WPAA&uninstall=true&site=' . site_url() );
    57         if (false !== $handle) {
    58             curl_setopt($handle,  CURLOPT_RETURNTRANSFER, TRUE);
    59             curl_setopt($handle, CURLOPT_NOBODY, true);
    60             $response = curl_exec($handle);
    61             curl_close($handle);
    62         }
    63     }
    64 }
Note: See TracChangeset for help on using the changeset viewer.