PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
← All changes | admin/uninstall.php +14 -7 1.0.1trunk View file →
@@ -1,6 +1,8 @@
1 1 <?php
2 -
2 + if ( ! defined( 'ABSPATH' ) )
3 + exit;
4 +
3 5 function xyz_ihs_network_uninstall($networkwide) {
4 6 global $wpdb;
5 7
6 8 if (function_exists('is_multisite') && is_multisite()) {
@@ -22,15 +24,20 @@
22 24
23 25 function xyz_ihs_uninstall(){
24 26
25 27 global $wpdb;
26 -
28 +delete_option("xyz_ihs_sort_order");
29 +delete_option("xyz_ihs_sort_field_name");
27 30 delete_option("xyz_ihs_limit");
28 -
31 +delete_option("xyz_ihs_installed_date");
32 +delete_option('xyz_ihs_credit_dismiss');
33 +delete_option('xyz_ihs_premium_version_ads');
34 +delete_option('xyz_ihs_exec_in_editor');
35 +delete_option('xyz_ihs_free_version');
36 +delete_option('xyz_ihs_sync_needed');
37 +delete_option('xyz_ihs_show_snippet_usage');
29 38 /* table delete*/
30 39 $wpdb->query("DROP TABLE ".$wpdb->prefix."xyz_ihs_short_code");
31 -
32 -
40 +$wpdb->query("DROP TABLE ".$wpdb->prefix."xyz_ihs_usage");
33 41 }
34 -
35 42 register_uninstall_hook( XYZ_INSERT_HTML_PLUGIN_FILE, 'xyz_ihs_network_uninstall' );
36 -?>
43 +?>