#52056 closed defect (bug) (duplicate)
Twenty Fourteen: jQuery issue with WordPress 5.6
Reported by: | stfa76 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.6 |
Component: | Bundled Theme | Keywords: | |
Focuses: | javascript | Cc: |
Description (last modified by )
Hi,
Steps to reproduce :
- Install WordPress 5.6
- Install Theme Twenty Fourteen
- Go to the frontend and block request jquery-migrate.min.js
=> The following error appears in the console:
Uncaught TypeError: e.indexOf is not a function
load jQuery
http://localhost:8888/wordpress-blank/wp-content/themes/twentyfourteen/js/functions.js?ver=20171218:150
http://localhost:8888/wordpress-blank/wp-content/themes/twentyfourteen/js/functions.js?ver=20171218:211
jquery.min.js:2:84831
Unblock request jquery-migrate.min.js => No more error in the console.
This will become a permanent issue when jquery-migrate will be definitly removed with WordPress 5.7.
Thank you for your help.
Best regards,
Stephane.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi there, and welcome to WordPress trac!
You are absolutely correct that these themes have some jQuery deprecations in them, the plan is to have them updated before the jQuery Migrate script is turned off by default in a future WordPress release (tentatively planned for 5.7 at this time).
The progress on updating jQuery code used in core can be followed in ticket #51812, as such I'm going to mark this as a duplicate, so we can consolidate our efforts in one location.