Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/bxomrqz
File: uninstall.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Fired when the plugin is uninstalled.
[3] Fix | Delete
*
[4] Fix | Delete
* When populating this file, consider the following flow
[5] Fix | Delete
* of control:
[6] Fix | Delete
*
[7] Fix | Delete
* - This method should be static
[8] Fix | Delete
* - Check if the $_REQUEST content actually is the plugin name
[9] Fix | Delete
* - Run an admin referrer check to make sure it goes through authentication
[10] Fix | Delete
* - Verify the output of $_GET makes sense
[11] Fix | Delete
* - Repeat with other user roles. Best directly by using the links/query string parameters.
[12] Fix | Delete
* - Repeat things for multisite. Once for a single site in the network, once sitewide.
[13] Fix | Delete
*
[14] Fix | Delete
* This file may be updated more in future version of the Boilerplate; however, this is the
[15] Fix | Delete
* general skeleton and outline for how the file should work.
[16] Fix | Delete
*
[17] Fix | Delete
* For more information, see the following discussion:
[18] Fix | Delete
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
[19] Fix | Delete
*
[20] Fix | Delete
* @link http://example.com
[21] Fix | Delete
* @since 1.0.0
[22] Fix | Delete
*
[23] Fix | Delete
* @package Plugin_Name
[24] Fix | Delete
*/
[25] Fix | Delete
[26] Fix | Delete
// If uninstall not called from WordPress, then exit.
[27] Fix | Delete
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
[28] Fix | Delete
exit;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
class Alti_ProtectUploads_Uninstall {
[32] Fix | Delete
[33] Fix | Delete
public static function run() {
[34] Fix | Delete
$plugin_name = 'protect-uploads';
[35] Fix | Delete
if( is_admin()) delete_option( $plugin_name . '-protection' );
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
Alti_ProtectUploads_Uninstall::run();
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function