all repos — wp-ffpc @ e019caa4adc1ea91bf20826bea06e0cf0afc6f67

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.
Igor Jerosimić IgorDB@users.noreply.github.com
Fri, 10 Jan 2014 23:20:55 +0100
commit

e019caa4adc1ea91bf20826bea06e0cf0afc6f67

parent

dc7e4f3f4e733ae917de7acf7b35eee8441d3312

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M uninstall.phpuninstall.php

@@ -3,6 +3,11 @@ /**

* 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' );