Plugin Directory

Changeset 3468271


Ignore:
Timestamp:
02/24/2026 06:05:20 AM (5 weeks ago)
Author:
cartcoder
Message:

Release version 4.1.6

Location:
accessibility-assistant
Files:
243 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • accessibility-assistant/trunk/uninstall.php

    r3362416 r3468271  
    11<?php
    22
    3 // If uninstall is not called from WordPress, exit
     3/**
     4 * Fired when the plugin is uninstalled.
     5 *
     6 * When populating this file, consider the following flow
     7 * of control:
     8 *
     9 * - This method should be static
     10 * - Check if the $_REQUEST content actually is the plugin name
     11 * - Run an admin referrer check to make sure it goes through authentication
     12 * - Verify the output of $_GET makes sense
     13 * - Repeat with other user roles. Best directly by using the links/query string parameters.
     14 * - Repeat things for multisite. Once for a single site in the network, once sitewide.
     15 *
     16 * This file may be updated more in future version of the Boilerplate; however, this is the
     17 * general skeleton and outline for how the file should work.
     18 *
     19 * For more information, see the following discussion:
     20 * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
     21 *
     22 * @link       https://cartcoders.com/
     23 * @since      1.0.0
     24 *
     25 * @package    Accessibility_Assistant
     26 */
    427
    5 if (!defined('WP_UNINSTALL_PLUGIN')) {
    6 
    7     exit();
     28// If uninstall not called from WordPress, then exit.
     29if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
     30    exit;
    831}
    932delete_option('ada_uninstall_reason');
Note: See TracChangeset for help on using the changeset viewer.