| @@ -1,13 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | -if (!defined('WP_UNINSTALL_PLUGIN')) exit; | |
| 2 | +if (!defined('WP_UNINSTALL_PLUGIN')) { | |
| 3 | + exit; | |
| 4 | +} | |
| 3 | 5 | |
| 4 | 6 | delete_option('photonic_options'); |
| 5 | 7 | delete_option('photonic_authentication'); |
| 6 | 8 | delete_option('photonic_css'); |
| 7 | 9 | |
| 10 | +$photonic_token_monitor_timestamp = wp_next_scheduled('photonic_token_monitor'); | |
| 11 | +wp_unschedule_event($photonic_token_monitor_timestamp, 'photonic_token_monitor'); | |
| 8 | 12 | |
| 9 | -/*$url = wp_nonce_url('plugins.php?page=photonic-options-manager'); | |
| 13 | +/* | |
| 14 | +$url = wp_nonce_url('plugins.php?page=photonic-options-manager'); | |
| 10 | 15 | if (false === ($creds = request_filesystem_credentials($url, '', false, false))) { |
| 11 | 16 | return true; |
| 12 | 17 | } |
| 13 | 18 | |