Bug or Need improvement
-
Hi,
as developer I was working on a plugin in my wordpress setup where tutor plugin is also installed. I found a strange behavior, that on my custom form submit tutor plugin injected it’s nonce and sent request. To be more specific the js file for admin interface ‘tutor-admin.min.js’ is enqueued totally admin wide. not for any specific page which I believe is not standard or non tutor lms pages still it’s loading the js.
Then the js file tutor-admin.min.js has a code that fires on click event for id “export_settings” which is very common term for html id and as your js loads for whole wordpress dashboard it’s actually hijacking click event for such implementation in other places. it’s better you use your own prefix like “tutor_export_settings” for html id so that it’s more tutor lms specific. If the standard is not followed more and more conflict may occur with other plugins.
As your js is provided as minified, I used a non minify tool and sending you screenshot https://prnt.sc/sKInzBt4iCZW
thank you for your attention
The topic ‘Bug or Need improvement’ is closed to new replies.