PluginProbe
WP Debugging / 2.11.4
WP Debugging v2.11.4
2.12.6 2.12.5 trunk 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.11.10 2.11.11 2.11.12 2.11.13 2.11.14 2.11.15 2.11.16 2.11.17 2.11.18 2.11.19 2.11.2 2.11.20 2.11.21 2.11.22 2.11.23 2.11.24 2.11.3 All 59 releases
wp-debugging / uninstall.php

uninstall.php in WP Debugging 2.11.4, at uninstall.php

33 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WP Debugging
4 *
5 * @package wp-debugging
6 * @author Andy Fragen
7 * @license MIT
8 */
9
10 /**
11 * Fired when the plugin is uninstalled.
12 *
13 * When populating this file, consider the following flow
14 * of control:
15 *
16 * - This method should be static
17 * - Check if the $_REQUEST content actually is the plugin name
18 * - Run an admin referrer check to make sure it goes through authentication
19 * - Verify the output of $_GET makes sense
20 * - Repeat with other user roles. Best directly by using the links/query string parameters.
21 * - Repeat things for multisite. Once for a single site in the network, once sitewide.
22 */
23
24 // If uninstall not called from WordPress, then exit.
25 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
26 exit;
27 }
28
29 delete_option( 'wp_debugging' );
30 delete_site_option( 'wp_debugging' );
31 delete_option( 'wp_debugging_restore' );
32 delete_site_option( 'wp_debugging_restore' );
33