From fdbeb2f4d2bba2ed3f693fdfa59b7d78f12f242b 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 c0f8525..c71c6c2 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -198,7 +198,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(); } }