Import of the 1.1.0 archive plus a CLI guard on the two test scripts: served over HTTP from wp-content/plugins they would delete the plugin settings and create test accounts on the site.
19 lines
487 B
PHP
19 lines
487 B
PHP
<?php
|
|
/**
|
|
* uninstall.php
|
|
*
|
|
* Removes the plugin settings when it is deleted from WordPress.
|
|
* The user links (of_sso_user_id) are kept so a reinstall does not lose them.
|
|
*
|
|
* @package OpenFlyers_SSO
|
|
*
|
|
* @link https://doc4-fr.openflyers.com/Plugin-WordPress Documentation publique
|
|
* @link https://work.openflyers.com/OF4-WordPress-SSO-plugin Fiche interne
|
|
*/
|
|
|
|
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
|
exit;
|
|
}
|
|
|
|
delete_option('of_sso_settings');
|