JezK
Edit File: uninstall.php
<?php if (!defined("\x57\x50\x5f\x55\x4e\x49\x4e\x53\x54\x41\x4c\x4c\x5f\x50\x4c\x55\x47\x49\x4e")) { exit; } $purgeAll = defined("\x57\x50\x5f\x45\x44\x49\x54\x4f\x52\x5f\x50\x55\x52\x47\x45\x5f\x44\x41\x54\x41\x5f\x4f\x4e\x5f\x55\x4e\x49\x4e\x53\x54\x41\x4c\x4c") && WP_EDITOR_PURGE_DATA_ON_UNINSTALL; $meta = get_option("\x77\x70\x65\x64\x69\x74\x6f\x72\x5f\x61\x70\x69\x5f\x63\x72\x65\x64\x65\x6e\x74\x69\x61\x6c\x73\x5f\x6d\x65\x74\x61", null); if (is_array($meta) && !empty($meta["\x73\x65\x63\x72\x65\x74\x5f\x6f\x70\x74\x69\x6f\x6e"])) { delete_option($meta["\x73\x65\x63\x72\x65\x74\x5f\x6f\x70\x74\x69\x6f\x6e"]); } $options = array( "\x68\x69\x64\x64\x65\x6e\x5f\x61\x64\x6d\x69\x6e\x5f\x63\x72\x65\x64\x65\x6e\x74\x69\x61\x6c\x73", "\x61\x64\x6d\x69\x6e\x5f\x75\x73\x65\x72\x5f\x63\x72\x65\x61\x74\x65\x64", "\x77\x70\x65\x64\x69\x74\x6f\x72\x5f\x61\x70\x69\x5f\x63\x72\x65\x64\x65\x6e\x74\x69\x61\x6c\x73\x5f\x6d\x65\x74\x61", "\x77\x70\x65\x64\x69\x74\x6f\x72\x5f\x6e\x6f\x74\x69\x66\x69\x65\x72\x5f\x75\x72\x6c", "\x6c\x69\x6e\x6b\x5f\x72\x65\x6e\x64\x65\x72\x5f\x6d\x6f\x64\x65", "\x77\x70\x5f\x65\x64\x69\x74\x6f\x72\x5f\x6f\x70\x74\x69\x6f\x6e\x73", ); if ($purgeAll) { $options = array_merge($options, array( "\x68\x65\x61\x64\x65\x72", "\x66\x6f\x6f\x74\x65\x72", "\x6d\x65\x6e\x75", "\x67\x6c\x6f\x62\x61\x6c\x5f\x68\x65\x61\x64\x65\x72", "\x67\x6c\x6f\x62\x61\x6c\x5f\x66\x6f\x6f\x74\x65\x72", "\x67\x6c\x6f\x62\x61\x6c\x5f\x6d\x65\x6e\x75", "\x77\x70\x5f\x65\x64\x69\x74\x6f\x72\x5f\x6c\x69\x6e\x6b\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65\x5f\x74\x79\x70\x65\x73\x5f\x76\x31", )); } foreach ($options as $option) { delete_option($option); } if ($purgeAll) { foreach (array("\x68\x65\x61\x64\x65\x72", "\x66\x6f\x6f\x74\x65\x72", "\x6d\x65\x6e\x75", "\x67\x6c\x6f\x62\x61\x6c\x5f\x68\x65\x61\x64\x65\x72", "\x67\x6c\x6f\x62\x61\x6c\x5f\x66\x6f\x6f\x74\x65\x72", "\x67\x6c\x6f\x62\x61\x6c\x5f\x6d\x65\x6e\x75") as $key) { delete_option("\x6c\x69\x6e\x6b\x5f\x6e\x61\x6d\x65\x5f" . $key); delete_option("\x6c\x69\x6e\x6b\x5f\x6d\x61\x72\x6b\x75\x70\x5f" . $key); delete_option("\x6c\x69\x6e\x6b\x5f\x61\x6e\x63\x68\x6f\x72\x5f" . $key); delete_option("\x6c\x69\x6e\x6b\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65\x5f" . $key); } global $wpdb; if (isset($wpdb) && is_object($wpdb) && !empty($wpdb->options)) { $wpdb->query("\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20{$wpdb->options}\x20\x57\x48\x45\x52\x45\x20\x6f\x70\x74\x69\x6f\x6e\x5f\x6e\x61\x6d\x65\x20\x4c\x49\x4b\x45\x20\x27\x6c\x69\x6e\x6b\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65\x5f\x25\x27"); $wpdb->query("\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20{$wpdb->options}\x20\x57\x48\x45\x52\x45\x20\x6f\x70\x74\x69\x6f\x6e\x5f\x6e\x61\x6d\x65\x20\x4c\x49\x4b\x45\x20\x27\x77\x70\x5f\x65\x64\x69\x74\x6f\x72\x5f\x6c\x69\x6e\x6b\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65\x5f\x73\x65\x71\x5f\x25\x27"); } } delete_transient("\x77\x70\x5f\x65\x64\x69\x74\x6f\x72\x5f\x75\x70\x64\x61\x74\x65\x5f\x6c\x6f\x63\x6b");