Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#52056 closed defect (bug) (duplicate)

Twenty Fourteen: jQuery issue with WordPress 5.6

Reported by: stfa76 Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version: 5.6
Severity: normal Keywords:
Cc: Focuses: javascript

Description (last modified by Clorith)

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)

#1 @Clorith
6 years ago

  • Description modified (diff)
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed
  • Version → 5.6

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.

#2 @SergeyBiryukov
6 years ago

  • Summary Twenty Fourteen Theme - jQuery issue WordPress 5.6 → Twenty Fourteen: jQuery issue with WordPress 5.6
Note: See TracTickets for help on using tickets.