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
This commit is contained in:
parent
073f387725
commit
3321070f7e
17 changed files with 1793 additions and 0 deletions
23
uninstall.php
Executable file
23
uninstall.php
Executable file
|
@ -0,0 +1,23 @@
|
|||
<?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.');
|
||||
}
|
Reference in a new issue