| @@ -1,27 +1,24 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('WP_UNINSTALL_PLUGIN')) |
| 4 | - wp_die(__('Plugin uninstallation can not be executed in this fashion.')); | |
| 5 | - | |
| 4 | + wp_die(__('Plugin uninstallation can not be executed in this fashion.')); | |
| 5 | + | |
| 6 | 6 | global $wpdb; |
| 7 | - | |
| 8 | -define( 'VIMEOGRAPHY_GALLERY_TABLE', $wpdb->prefix . "vimeography_gallery"); | |
| 9 | -define( 'VIMEOGRAPHY_GALLERY_META_TABLE', $wpdb->prefix . "vimeography_gallery_meta"); | |
| 10 | 7 | |
| 11 | -delete_option('vimeography_advanced_settings'); | |
| 12 | -delete_option('vimeography_default_settings'); | |
| 13 | -delete_option('vimeography_db_version'); | |
| 14 | - | |
| 15 | -$wpdb->query('DROP TABLE '.VIMEOGRAPHY_GALLERY_TABLE.', '.VIMEOGRAPHY_GALLERY_META_TABLE); | |
| 8 | +// delete_option('vimeography_advanced_settings'); | |
| 9 | +// delete_option('vimeography_default_settings'); | |
| 10 | +// delete_option('vimeography_db_version'); | |
| 16 | 11 | |
| 17 | -$wpdb->query('DELETE a, b | |
| 18 | -FROM | |
| 19 | - wp_options a, wp_options b | |
| 20 | -WHERE | |
| 21 | - a.option_name LIKE "_transient_vimeography_%" AND | |
| 22 | - b.option_name LIKE "_transient_timeout_vimeography_%"; | |
| 23 | -'); | |
| 12 | +// $wpdb->query('DROP TABLE '.$wpdb->prefix.'vimeography_gallery, '.$wpdb->prefix.'vimeography_gallery_meta'); | |
| 13 | + | |
| 14 | +// $wpdb->query('DELETE a, b | |
| 15 | +// FROM | |
| 16 | +// wp_options a, wp_options b | |
| 17 | +// WHERE | |
| 18 | +// a.option_name LIKE "_transient_vimeography_%" AND | |
| 19 | +// b.option_name LIKE "_transient_timeout_vimeography_%"; | |
| 20 | +// '); | |
| 24 | 21 | |
| 25 | 22 | // Hell, let's do the user a favor by cleaning up ALL stale transients. |
| 26 | 23 | |
| 27 | 24 | $wpdb->query('DELETE a, b |