From acde99ad35d6dd68758fec58a2e8b0e471c1d678 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Mon, 21 Aug 2023 11:40:14 +0200 Subject: [PATCH] Update AJAX MU plugin --- mu-plugins/fictioneer_fast_ajax.php | 47 --------------------- mu-plugins/fictioneer_fast_requests.php | 55 +++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 47 deletions(-) delete mode 100644 mu-plugins/fictioneer_fast_ajax.php create mode 100644 mu-plugins/fictioneer_fast_requests.php diff --git a/mu-plugins/fictioneer_fast_ajax.php b/mu-plugins/fictioneer_fast_ajax.php deleted file mode 100644 index fffb1ede..00000000 --- a/mu-plugins/fictioneer_fast_ajax.php +++ /dev/null @@ -1,47 +0,0 @@ - $plugin ) { - if ( ! in_array( $plugin, $allow_list ) ) { - unset( $plugins[ $index ] ); - } - } - - // Continue filter - return $plugins; -} -add_filter( 'option_active_plugins', 'fictioneer_exclude_plugins' ); diff --git a/mu-plugins/fictioneer_fast_requests.php b/mu-plugins/fictioneer_fast_requests.php new file mode 100644 index 00000000..e44f0a04 --- /dev/null +++ b/mu-plugins/fictioneer_fast_requests.php @@ -0,0 +1,55 @@ + $plugin ) { + if ( ! in_array( $plugin, $allow_list ) ) { + unset( $plugins[ $index ] ); + } + } + + // Continue filter + return $plugins; +}