qriouslad / debug-log-manager

A WordPress plugin to log errors via WP_DEBUG. Also allows to create, view and clear the debug.log file.
https://wordpress.org/plugins/debug-log-manager/
GNU General Public License v2.0
14 stars 3 forks source link

Load public.js conditionally #8

Open viktorix opened 1 year ago

viktorix commented 1 year ago

It looks like the plugin loads public.js without any conditions. I disabled WP_DEBUG and even turned off the error logging switch, but public.js continues to be enqueued. If debugging is disabled, this should disable public.js too. Or at least provide an option to disable it. I wouldn't want to load this for regular visitors.

qriouslad commented 1 year ago

@viktorix that's a good idea. I'll implement in the next release. Thanks!