Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-11-27 03:25:38 +0300
committerGitHub <noreply@github.com>2020-11-27 03:25:38 +0300
commitca0b2c822667fe50f717b35620ee9c7c1bada996 (patch)
treee7eac6c4632d26246c2d1d0f8c3f337f663aa377 /core
parentad2c670c23666f92debdb59e8bfa9e9ea55c4335 (diff)
WP optimize is not a matomo plugin (#16820)
Just noticed wordpress found wp-optimize which has a plugin.json but a custom plugin.json and then it was throwing an exception that it's not a valid plugin name because of the dash. Was only visible on the command line so far so might not be an issue. If this happens again I will find a better generic solution for it.
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/Manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php
index 73d6617534..2bb80792a4 100644
--- a/core/Plugin/Manager.php
+++ b/core/Plugin/Manager.php
@@ -1466,6 +1466,7 @@ class Manager
'PluginMarketplace', //defines a plugin.json but 1.x Piwik plugin
'DoNotTrack', // Removed in 2.0.3
'AnonymizeIP', // Removed in 2.0.3
+ 'wp-optimize', // a WP plugin that has a plugin.json file but is not a matomo plugin
);
return in_array($pluginName, $bogusPlugins);
}