This commit is contained in:
Javier Casares 2026-07-09 06:20:06 +00:00
commit 31f7e97d39

View file

@ -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';