From df7b39fdeac43846b95aed26e4e6c35ec689df17 Mon Sep 17 00:00:00 2001 From: Fernando Jorge Mota Date: Thu, 21 Dec 2023 22:37:16 -0300 Subject: [PATCH] Require Post_Types class on uninstall.php to avoid conflict --- includes/class-wp-job-manager-data-cleaner.php | 1 - uninstall.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wp-job-manager-data-cleaner.php b/includes/class-wp-job-manager-data-cleaner.php index 6d700c85b..ce992a3d0 100644 --- a/includes/class-wp-job-manager-data-cleaner.php +++ b/includes/class-wp-job-manager-data-cleaner.php @@ -9,7 +9,6 @@ exit; } -require __DIR__ . '/class-wp-job-manager-post-types.php'; /** * Methods for cleaning up all plugin data. diff --git a/uninstall.php b/uninstall.php index 19def8b63..47de62a61 100644 --- a/uninstall.php +++ b/uninstall.php @@ -10,6 +10,7 @@ } // Cleanup all data. +require 'includes/class-wp-job-manager-post-types.php'; require 'includes/class-wp-job-manager-data-cleaner.php'; if ( ! is_multisite() ) {