v5.1.0
This commit is contained in:
parent
9aef0b4533
commit
31f7e97d39
1 changed files with 719 additions and 655 deletions
|
|
@ -28,9 +28,15 @@ if ( ! $wpvulnerability_delete_on_uninstall ) {
|
|||
}
|
||||
|
||||
// User opted in: load the uninstall routine from the main plugin file.
|
||||
// The main plugin file is not loaded during uninstall, so the constants that
|
||||
// wpvulnerability-run.php references at the top level must be defined here first
|
||||
// to avoid a fatal "Undefined constant" error (see wpvulnerability-run.php top-level add_filter).
|
||||
if ( ! defined( 'WPVULNERABILITY_PLUGIN_PATH' ) ) {
|
||||
define( 'WPVULNERABILITY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
||||
}
|
||||
if ( ! defined( 'WPVULNERABILITY_PLUGIN_BASE' ) ) {
|
||||
define( 'WPVULNERABILITY_PLUGIN_BASE', plugin_basename( WPVULNERABILITY_PLUGIN_PATH . 'wpvulnerability.php' ) );
|
||||
}
|
||||
|
||||
require_once WPVULNERABILITY_PLUGIN_PATH . 'wpvulnerability-run.php';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue