Skip to content

Commit

Permalink
Remove noop version of apply_filters and do_action
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenpf committed Jul 30, 2024
1 parent 9085b5e commit 69dfb06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions src/SQLite/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
15 changes: 0 additions & 15 deletions src/SQLite/noop.php

This file was deleted.

0 comments on commit 69dfb06

Please sign in to comment.