From a93526268f4afefbe3f630a1acc8a8dfd2b49019 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Tue, 7 May 2024 16:06:47 +0200 Subject: [PATCH] Fix mu-plugin more --- mu-plugins/fictioneer_001_fast_requests.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mu-plugins/fictioneer_001_fast_requests.php b/mu-plugins/fictioneer_001_fast_requests.php index 8c5115ea..d35cf195 100644 --- a/mu-plugins/fictioneer_001_fast_requests.php +++ b/mu-plugins/fictioneer_001_fast_requests.php @@ -50,7 +50,11 @@ function fictioneer_exclude_plugins( $plugins ) { } // Check if AJAX comment request -if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_REQUEST['fcn_fast_comment_ajax'] ) ) { +if ( + get_option( 'fictioneer_enable_fast_ajax_comments' ) && + defined( 'DOING_AJAX' ) && DOING_AJAX && + isset( $_REQUEST['fcn_fast_comment_ajax'] ) +) { add_filter( 'option_active_plugins', 'fictioneer_exclude_plugins_while_commenting' ); }