Closed michael-sumner closed 1 year ago
I have checked all other constant define blocks across the repo, and they are all ok
Thanks for the PR. I'm very hesitant to make this change because it's papering over the underlying issue which is that two versions of the same plugin are active. If that's the case then most of the functionality in the plugin will be happening twice, and with the class autoloading you may be loading different versions of class definitions to what are expected.
I think the solution here is to fix the underlying problem which is that you have a plugin active that's also a mu-plugin, and that's never a good idea.
Cheers!
On WordPress VIP platform, the query-monitor plugin is part of the VIP Go mu-plugins. Therefore, it will throw an error if the query-monitor plugin is also installed and activated in the
/plugins
directory.This PR fixes the issue by defining the constant only if it is not yet defined.