JS conflict
-
Hi guys,
I am testing this plugin and run into a JS issue.
In your plugin’s
frontendScriptsAndCSS()
PHP function you are enqueuing aui.js
file and outputting localized script ofwp
object. Please, rename thewp
both inwp_localize_script()
function call and also inui.js
file as now it overrides the WordPress nativewp
JS object that is called out when a page builder plugin is used, for example.It is always a good practice to name a custom JS variables/object some more plugin-specific. What about
PDCwp
?Thank you!
Regards,
Oliver
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JS conflict’ is closed to new replies.