This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/uninstall.php
Mark Cheret 3321070f7e footnotes WordPress Plugin first alpha release
- Basic functionality is available
- Tested against WordPress 3.9.1

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@917799 b8457f37-d9ea-0310-8a92-e5e31aec5664
2014-05-20 11:23:45 +00:00

23 lines
590 B
PHP
Executable file

<?php
/**
* User: she
* Date: 29.04.14
* Time: 15:03
*/
/* check if the wordpress function to uninstall plugins is active */
if (!defined('WP_UNINSTALL_PLUGIN')) {
header('Status: 403 Forbidden');
header('HTTP/1.1 403 Forbidden');
exit();
}
/* uninstalling the plugin is only allowed for logged in users */
if (!is_user_logged_in()) {
wp_die('You must be logged in to run this script.');
}
/* current user needs the permission to (un)install plugins */
if (!current_user_can('install_plugins')) {
wp_die('You do not have permission to run this script.');
}