PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.7.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.7.4
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 +14 -15 1.41.7.4 View file →
@@ -6,38 +6,37 @@
6 6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 9 | |
10 - | (c) Jerome Bruandet ~ https://code-profiler.com/ |
10 + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
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
19 -$cp_options = get_option( 'code-profiler' );
21 +$cp_options = get_option('code-profiler');
20 22
21 23 global $wp_filesystem;
22 -require_once ABSPATH . 'wp-admin/includes/file.php';
24 +require_once ABSPATH .'wp-admin/includes/file.php';
23 25 WP_Filesystem();
24 26
25 -// Delete profiles on disk (optional)
26 -if (! empty( $cp_options['uninstall_delete_profiles'] ) ) {
27 - require_once 'lib/helper.php';
28 - // Find and recursively delete any files and folders
29 - // located inside the profiles directory:
30 - $wp_filesystem->delete( CODE_PROFILER_UPLOAD_DIR, true, 'd' );
31 -}
27 +define('CODE_PROFILER_VERSION', '1');
28 +require_once 'lib/helper.php';
32 29
33 -if ( $wp_filesystem->exists( WPMU_PLUGIN_DIR .'/0----code-profiler.php' ) ) {
34 - $wp_filesystem->delete( WPMU_PLUGIN_DIR .'/0----code-profiler.php', false, 'f' );
30 +if ( $wp_filesystem->exists( WPMU_PLUGIN_DIR .'/'. CODE_PROFILER_MUPLUGIN ) ) {
31 + $wp_filesystem->delete( WPMU_PLUGIN_DIR .'/'. CODE_PROFILER_MUPLUGIN, false, 'f');
35 32 }
36 33
37 34 // Delete options in the DB
38 -delete_option( 'code-profiler' );
35 +delete_option('code-profiler');
39 36
37 +// Delete profiles on disk
38 +$wp_filesystem->delete( CODE_PROFILER_UPLOAD_DIR, true, 'd');
39 +
40 40 return;
41 -
42 41 // =====================================================================
43 42 // EOF