From 7d64296b21621922933aa651def269dd6430656f Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 2 May 2021 19:19:22 +0100 Subject: [PATCH] fix: disable de/activate hooks (for now) --- src/footnotes.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/footnotes.php b/src/footnotes.php index a8273c7..e929969 100755 --- a/src/footnotes.php +++ b/src/footnotes.php @@ -88,8 +88,14 @@ function deactivate_footnotes(): void { includes\Deactivator::deactivate(); } -register_activation_hook( __FILE__, 'activate_footnotes' ); -register_deactivation_hook( __FILE__, 'deactivate_footnotes' ); +/* + * TODO: currently these throw an error: + * Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be + * a valid callback, function "deactivate_footnotes" not found or invalid + * function name in /srv/www/wordpress-one/public_html/wp-includes/class-wp-hook.php:292 + */ +//register_activation_hook( __FILE__, 'activate_footnotes' ); +//register_deactivation_hook( __FILE__, 'deactivate_footnotes' ); /** * The core plugin class that defines internationalization, admin-specific and