uninstall.php in Plugins List 2.5.2, at uninstall.php
| 1 | <?php |
| 2 | /** |
| 3 | * Uninstaller |
| 4 | * |
| 5 | * Uninstall the plugin by removing any options from the database |
| 6 | * |
| 7 | * @package plugins-list |
| 8 | */ |
| 9 | |
| 10 | // If the uninstall was not called by WordPress, exit. |
| 11 | |
| 12 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 13 | exit(); } |
| 14 | |
| 15 | // Delete cache. |
| 16 | |
| 17 | delete_transient( 'plugins_list' ); |
| 18 | |
| 19 | delete_transient( 'artiss_plugins_list' ); // Previous version - kept to ensure this is housekept on older versions. |
| 20 |