Ajaxurl JS var conflict
-
Hi,
I believe there’s a conflicting JS variable “ajaxurl” – the browser console is reporting following error, in the admin dashboard page and customizer:
TypeError: ajaxurl.indexOf is not a function
The code in question is here (just a fragment), showing that it actually belongs to Polylang JS code (the “pll_ajax_backend”):
$.ajaxPrefilter(function (options, originalOptions, jqXHR) { if ( -1 != options.url.indexOf( ajaxurl ) || -1 != ajaxurl.indexOf( options.url ) ) { if ( 'undefined' === typeof options.data ) { options.data = ( 'get' === options.type.toLowerCase() ) ? 'pll_ajax_backend=1' : {"pll_ajax_backend":1}; } else { ... the rest of the code
What are yout thoughts about this?
Can you confirm that this issue exist, and if so, when do you believe it would the fix be available?Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Ajaxurl JS var conflict’ is closed to new replies.