wp-ffpc/uninstall.php
Igor Jerosimić e019caa4ad 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.
2014-01-10 23:20:55 +01:00

17 lines
319 B
PHP

<?php
/**
* 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 */
include_once ( 'wp-ffpc.php' );
/* run uninstall function */
$wp_ffpc->plugin_uninstall();
?>