broken-link-checker
Last commit date
core
14 years ago
css
14 years ago
idn
15 years ago
images
14 years ago
includes
14 years ago
js
15 years ago
languages
14 years ago
modules
14 years ago
broken-link-checker.php
14 years ago
readme.txt
14 years ago
uninstall.php
15 years ago
uninstall.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @author Janis Elsts |
| 5 | * @copyright 2010 |
| 6 | * |
| 7 | * The terrifying uninstallation script. |
| 8 | */ |
| 9 | |
| 10 | if( defined( 'ABSPATH') && defined('WP_UNINSTALL_PLUGIN') ) { |
| 11 | |
| 12 | //Remove the plugin's settings & installation log |
| 13 | delete_option('wsblc_options'); |
| 14 | delete_option('blc_installation_log'); |
| 15 | |
| 16 | //Remove the database tables |
| 17 | $mywpdb = $GLOBALS['wpdb']; |
| 18 | if( isset($mywpdb) ) { |
| 19 | //EXTERMINATE! |
| 20 | $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, {$mywpdb->prefix}blc_filters" ); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | ?> |