Fix mu-plugin more

This commit is contained in:
Tetrakern 2024-05-07 16:06:47 +02:00
parent 1b0ec45654
commit a93526268f

View File

@ -50,7 +50,11 @@ function fictioneer_exclude_plugins( $plugins ) {
} }
// Check if AJAX comment request // 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' ); add_filter( 'option_active_plugins', 'fictioneer_exclude_plugins_while_commenting' );
} }