Conflict with WordPress 5.5
-
Once I updated my site to WordPress 5.5, I noticed that any flyout menus in the admin are not working at all.
I noticed the following errors in my console:
Uncaught TypeError: $(...).live is not a function at HTMLDocument.<anonymous> (update-core.php:494) at i (load-scripts.php?c=0&load[chunk_0]=jquery,utils&ver=5.5:2) at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery,utils&ver=5.5:2) at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery,utils&ver=5.5:2) at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery,utils&ver=5.5:2)
Upon deactivating your plugin the issue is completely fixed. So I’m assuming there is an error on the javascript your plugin is adding to the admin side of things:
<script> jQuery(document).ready(function ($) { $('.filter__itm').live('click', function(e) { var text = $(this).text(); $("button#dropbtn span").text(text); $('.dropdown_items .dropdown-content').attr('style', 'display: none !important'); }); setTimeout(function(){ $(".dropdown_items #dropbtn").hover(function() { $('.dropdown_items .dropdown-content').css("display","block"); }); },3000); jQuery(document).live('click', function(e) { $('.dropdown_items .dropdown-content').attr('style', 'display: none !important'); }); $('div#show-templates').live('click', function(e) { var inputs = $(".filter__itm"); for(var i = 0; i < inputs.length; i++){ if($(inputs[i]).text() == 'story article'){ $(inputs[i]).hide(); break; } } }); }); </script> <script> jQuery(document).ready(function ($) { $('span#oswpLauncherContentPopupExamples').parent().attr({'data-opinionstage-content-launch':"", 'data-os-view':"examples"}); $('span#oswpLauncherContentPopup').parent().attr({'data-opinionstage-content-launch':"", 'data-os-view':"content"}); $('span#oswpLauncherContentPopupExamples').parent().on('click',function(e){ var dataView = $(this).attr('data-os-view'); if(dataView == 'examples'){ setTimeout(function(){$('div#show-templates').trigger('click');},2000); } }); $('span#oswpLauncherContentPopup').parent().on('click',function(e){ e.preventDefault(); $('div#view-items').trigger('click'); }); }); </script>
Hope this quick report helps fix the issue. ??
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Conflict with WordPress 5.5’ is closed to new replies.