From cf5c10ffa464bba669a805806aa56c9c8c0875e2 Mon Sep 17 00:00:00 2001 From: Milen Petrinski Date: Wed, 16 Mar 2022 14:16:00 +0000 Subject: [PATCH] Fix the added elements to the sitewide active plugins for Yoast plugins. The original array has the plugin file as key and the date it is activated as value. --- inc/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/namespace.php b/inc/namespace.php index cea979d..6c25266 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -201,7 +201,7 @@ function active_yoast_plugins( $active_plugins ) { foreach ( YOAST_PLUGINS as $plugin_file ) { $plugin_path = Altis\ROOT_DIR . '/vendor/yoast/' . $plugin_file; if ( is_readable( $plugin_path ) ) { - $active_plugins[] = $plugin_file; + $active_plugins[ $plugin_file ] = time(); } }