我已经将一个客户的站点从旧的垃圾域名迁移到新的域名,以更好地代表他们的业务。然而,自从移动以来,似乎出现了某种Javascript/Ajax问题。
例如,我似乎无法切换选项卡(在ajax页面上),而;“快速编辑”;工具根本不起作用。当单击任何页面上的“快速编辑”链接时,我在F12控制台中发现此错误。
Uncaught TypeError: Cannot read property \'hasClass\' of undefined
at HTMLDocument.<anonymous> (load-scripts.php?c=1&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,inline-edit-po&load[chunk_1]=st,heartbeat,svg-painter,wp-auth-check,wp-sanitize,updates,shortcode,wp-backbone,media-models,wp-plupload&ver=5.5:292)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)
at Object.trigger (jquery.js?ver=1.12.4-wp:3)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4-wp:3)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.<anonymous> (load-scripts.php?c=1&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,inline-edit-po&load[chunk_1]=st,heartbeat,svg-painter,wp-auth-check,wp-sanitize,updates,shortcode,wp-backbone,media-models,wp-plupload&ver=5.5:48)
at i (jquery.js?ver=1.12.4-wp:2)