From 69dfb06b70306aaac6550e807ebb809fba928cec Mon Sep 17 00:00:00 2001 From: Jeroen Pfeil Date: Tue, 30 Jul 2024 12:09:03 +0700 Subject: [PATCH] Remove noop version of apply_filters and do_action --- src/SQLite/Base.php | 6 ------ src/SQLite/noop.php | 15 --------------- 2 files changed, 21 deletions(-) delete mode 100644 src/SQLite/noop.php diff --git a/src/SQLite/Base.php b/src/SQLite/Base.php index 5c866348..0df48832 100644 --- a/src/SQLite/Base.php +++ b/src/SQLite/Base.php @@ -84,12 +84,6 @@ protected function load_dependencies() { define( 'SQLITE_DB_DROPIN_VERSION', $sqlite_plugin_version ); // phpcs:ignore } - # WordPress is not loaded during the execution of the export and import commands. - # The SQLite database integration plugin uses do_action and apply_filters to hook - # into the WordPress core. To prevent a fatal error, we can define these functions - # as no-op functions. - require_once __DIR__ . '/noop.php'; - // We also need to selectively load the necessary classes from the plugin. require_once $plugin_directory . '/php-polyfills.php'; require_once $plugin_directory . '/constants.php'; diff --git a/src/SQLite/noop.php b/src/SQLite/noop.php deleted file mode 100644 index 3d15ddce..00000000 --- a/src/SQLite/noop.php +++ /dev/null @@ -1,15 +0,0 @@ -