Сайт на Wordpress, тема Basic.
В консоле есть предупреждение:
JQMIGRATE: Migrate is installed with logging active, version 3.3.2 jquery-migrate.js:69:17
JQMIGRATE: jQuery.fn.scroll() event shorthand is deprecated jquery-migrate.js:100:12
console.trace() jquery-migrate.js:102:13
jQuery 2
migrateWarn
name
<анонимный>
https://домен/wp-content/themes/basic/js/functions...
jQuery 2
JQMIGRATE: jQuery.fn.click() event shorthand is deprecated jquery-migrate.js:100:12
console.trace() jquery-migrate.js:102:13
jQuery 2
<анонимный>
https://домен/wp-content/themes/basic/js/functions...
jQuery 2
mightThrow
process
Нашёл вот такое объяснения:
JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
Cause: The .on() and .trigger() methods can set an event handler or generate an event for any event type, and should be used instead of the shortcut methods. This message also applies to the other event shorthands, including: blur, focus, focusin, focusout, resize, scroll, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and contextmenu.
Solution: Instead of .click(fn) use .on("click", fn). Instead of .click() use .trigger("click").
Ещё вот возможные решения:
https://gist.github.com/doque/7591fcf2ad555d15c7de
Я не спец, но найти место в определенном файле и заменить там одно на другое я могу.
Можно пошагово объяснить как исправить эти предупреждения?
Буду очень благодарен!