Fixed issue in uninstall script
When using 'uninstall.php' the plugin should always check for the WP_UNINSTALL_PLUGIN constant, before executing. The WP_UNINSTALL_PLUGIN constant is defined by WordPress at runtime during a plugin uninstall, it will not be present if 'uninstall.php' is requested directly.
This commit is contained in:
parent
dc7e4f3f4e
commit
e019caa4ad
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
||||||
* uninstall file for WP-FFPC; uninstall hook does not remove the databse options
|
* uninstall file for WP-FFPC; uninstall hook does not remove the databse options
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// exit if uninstall not called from WordPress
|
||||||
|
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
/* get the worker file */
|
/* get the worker file */
|
||||||
include_once ( 'wp-ffpc.php' );
|
include_once ( 'wp-ffpc.php' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue