broken-link-checker
Last commit date
images
16 years ago
JSON.php
16 years ago
broken-link-checker.php
16 years ago
instance-classes.php
16 years ago
link-classes.php
16 years ago
readme.txt
16 years ago
uninstall.php
16 years ago
utility-class.php
16 years ago
wsblc_ajax.php
16 years ago
uninstall.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @author W-Shadow |
| 5 | * @copyright 2009 |
| 6 | * |
| 7 | * The terrifying uninstallation script. |
| 8 | */ |
| 9 | |
| 10 | if( defined( 'ABSPATH') && defined('WP_UNINSTALL_PLUGIN') ) { |
| 11 | |
| 12 | //Remove the plugin's settings |
| 13 | delete_option('wsblc_options'); |
| 14 | |
| 15 | //Remove the database tables |
| 16 | $mywpdb = $GLOBALS['wpdb']; |
| 17 | if( isset($mywpdb) ) { |
| 18 | //EXTERMINATE! |
| 19 | $mywpdb->query( "DROP TABLE IF EXISTS {$mywpdb->prefix}blc_linkdata, {$mywpdb->prefix}blc_postdata, {$mywpdb->prefix}blc_instances, {$mywpdb->prefix}blc_links, {$mywpdb->prefix}blc_synch" ); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | ?> |