Skip to content

Commit

Permalink
Fix the added elements to the sitewide active plugins for Yoast plugins.
Browse files Browse the repository at this point in the history
The original array has the plugin file as key and the date it is activated as value.
  • Loading branch information
gonzomir committed Mar 16, 2022
1 parent 2daf965 commit ca6fd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit ca6fd62

Please sign in to comment.