PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.6
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.6
1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 All 40 releases
← All changes | uninstall.php +5 -8 1.51.6 View file →
@@ -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