iolevel / wpdotnet-sdk

WordPress compiled to .NET Standard. SDK for ASP.NET Core.
http://www.wpdotnet.com
Other
414 stars 69 forks source link

Fix the issue #117

Closed TomatorCZ closed 3 years ago

TomatorCZ commented 3 years ago

fixes #115

Problem Plugins like Jetpack or Gutenslider use Debug_Bar_Panel class, which is defined in Query Monitor plugin. The mentioned plugins do not have specified dependency on Query Monitor. For this reason, when the plugins are compiled, there is an undefined class error.

Solution Added an extra logic to catch(manually) scripts(usually contain a definition of derived class from Debug_Bar_Panel) using Debug_Bar_Panel and exclude them, when there is not the necessary plugin.