Skip to content

Commit

Permalink
remove some unneeded plugin manager calls
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Jan 8, 2025
1 parent 02a75cf commit 5fb5e75
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions classes/WpMatomo/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,6 @@ function ( $name ) {

// first, install core plugins
$plugin_manager = Manager::getInstance();
$plugin_manager->unloadPlugins();
$plugin_manager->loadActivatedPlugins();

foreach ( $non_core_plugins as $plugin ) {
$plugin_manager->unloadPlugin( $plugin );
Expand All @@ -483,8 +481,6 @@ function ( $name ) {
$plugin_manager->installLoadedPlugins();
}

$plugin_manager->installLoadedPlugins();

// reload activated plugins just in case something isn't right above
$plugin_manager->loadActivatedPlugins();
}
Expand Down

0 comments on commit 5fb5e75

Please sign in to comment.