OpenFlyers SSO WordPress plugin 1.1.1
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.
This commit is contained in:
18
uninstall.php
Normal file
18
uninstall.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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');
|
||||
Reference in New Issue
Block a user