| @@ -10,9 +10,11 @@ | ||
| 10 | 10 | | (c) Jerome Bruandet ~ https://code-profiler.com/ | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -if (! defined('WP_UNINSTALL_PLUGIN') ) { exit('Not allowed'); } | |
| 14 | +if (! defined('WP_UNINSTALL_PLUGIN') ) { | |
| 15 | + exit('Not allowed'); | |
| 16 | +} | |
| 15 | 17 | |
| 16 | 18 | // ===================================================================== |
| 17 | 19 | // Code Profiler's uninstaller (database + files). |
| 18 | 20 | |
| @@ -31,15 +33,10 @@ | ||
| 31 | 33 | |
| 32 | 34 | // Delete options in the DB |
| 33 | 35 | delete_option('code-profiler'); |
| 34 | 36 | |
| 35 | -// Delete profiles on disk (optional) | |
| 36 | -//~ if (! empty( $cp_options['uninstall_delete_profiles'] ) ) { | |
| 37 | - // Find and recursively delete any files and folders | |
| 38 | - // located inside the profiles directory: | |
| 39 | - $wp_filesystem->delete( CODE_PROFILER_UPLOAD_DIR, true, 'd'); | |
| 40 | -//~ } | |
| 37 | +// Delete profiles on disk | |
| 38 | +$wp_filesystem->delete( CODE_PROFILER_UPLOAD_DIR, true, 'd'); | |
| 41 | 39 | |
| 42 | 40 | return; |
| 43 | - | |
| 44 | 41 | // ===================================================================== |
| 45 | 42 | // EOF |