Enable jQuery Migrate Helper

Opis

Wraz z aktualizacją do WordPress 5.5, Migration tool znany jako jquery-migrate jest domyślnie wyłączony. Może to powodować nietypowe zachowanie w niektórych motywach lub wtyczkach, które używają starszego kodu.

Wtyczka jest tymczasowym rozwiązaniem, dodanie jquery-migrate w swojej stronie daje autorom wtyczek i motywów trochę czasu na aktualizacje i testy ich kodu.

With the update to WordPress 5.6, the included version of jQuery is also upgraded. This means that old code that previously caused warnings now may instead may cause errors or stop working entirely.

Some of the features no longer working will just stop working behind the scenes without any apparent problem.

The plugin will let you downgrade to a previous version of jQuery for a period, but as a site administrator you are encouraged to get the underlying issue fixed.

Instalacja

  1. Wgraj do folderu „plugins” zwykle wp-content/plugins/.
  2. Włącz wtyczkę na ekranie Wtyczki
  3. To wszystko! Wtyczka zacznie działać automatycznie.

FAQ

Co oznacza, że coś jest „przestarzałe”?

Skrypt, plik lub inny fragment kodu jest przestarzały, podczas gdy jego programiści zastępują go nowocześniejszym kodem lub całkowitym usuwanięciem przestarzałej funkcji.

What happens after WordPress 5.6

With the release of WordPress 5.6, the jQuery version also gets updated. This means that plugins or themes that previously caused deprecation warnings now instead will cause errors.
This plugin will allow you to, temporarily, return to the previous version of jQuery if this happens (it will also try to do so automatically for website visitors the first time an error happens) allowing you to fix the code, or replace it.

Jak znaleźć i używać konsoli w przeglądarce?

WordPress.org posiada artykuł o używaniu konsoli przeglądarki do diagnozowania i wykrywania błędów JavaScript.

The plugin isn’t logging deprecations or changing jQuery versions

If your site has any plugins for combining JavaScript files, or loading them asynchronously, this plugin may be negatively affected and not be able to operate as intended.

If your site requires this plugin to operate, please disable any plugins which interact with the loading of JavaScript files such as the types mentioned above. Once the underlying issue has been resolved, you may remove this plugin and re-enable those other tools.

How do I know if I need this plugin, or not

If something isn’t working correctly on your site after you upgraded WordPress, then you can simply try installing and activating this plugin. If this helps, then you leave this plugin activated and follow the instructions in the plugin. The plugin will tell you when you don’t need it any more.

There are a lot of deprecation warnings when using jQuery version 3

As jQuery version 3 is very new to WordPress, this is expected.

Deprecated notices means that the Migration tool is in place making sure these features still continue working while the related code is updated.

Recenzje

3 maja 2021
When I Enable this Plugin, my Front End Issue Resolves, and the Site Works fine, but When I login in My backend, my Site Speed goes down and Every Time I Received "Enabling Database Connection" on the front-end. Please Fix this Jquery Team. my theme is Electro.
16 marca 2021
Weeks later and I am STILL seeing this damned message every week. I have run Remove jQuery Migrate even rerun Enable jQuery Migrate followed by Remove jQuery Migrate again deactivated them then I also have Stop jQuery Migrate Emails which seems to do nothing but I don't find out until a week after I have been messing around. I guess the remedy is send the messages to spam
10 marca 2021
This is keeping a site with a paid theme abandoned by its developer working as intended. A backwards compatible patch like this is important keeping things working while applying security updates. Thank You!
26 lutego 2021
I was referred to this plugin from Qode Interactive (who I purchased my theme from) in order to fix some issues on my website, but then once I installed the plugin it completely broke my website. I tried to disable and uninstall it, but the affects of the plugin stayed. I tried to restore from a backup, but even that didn't work!! Finally, I contacted SiteGround and an agent helped me identify that the plugin left some file in the public_html folder that was outside of the backup. He deleted the files from public_html, restored from backup and I purged my cache and everything is working again. Lot of trouble to get back to square 1.
Przeczytaj 104 recenzje

Kontrybutorzy i deweloperzy

„Enable jQuery Migrate Helper” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.

Zaangażowani

Wtyczka “Enable jQuery Migrate Helper” została przetłumaczona na 16 języków. Podziękuj tłumaczom za ich wkład.

Przetłumacz wtyczkę “Enable jQuery Migrate Helper” na swój język.

Interesuje cię rozwój wtyczki?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Log zmian

v 1.3.0

  • Added legacy jQuery UI to be loaded if legacy jQuery is in use.
  • Added mention of site URLs in automatic emails.
  • Added option to enable/disable automatic downgrades.
  • Added logic to ensure only one downgrade request is sent per page load.
  • Updated logic around automatic downgrades for improved performance.
  • Fixed core deprecation notices being incorrectly labeled as undetermined inline ones.

v 1.2.0

  • Added settings page
  • Added option for downgrading to legacy jQuery
  • Added automatic downgrades
  • Added option to log deprecations in modern jQuery
  • Added e-mail notifications
  • Added weekly email digest of deprecations
  • Added option to allow logging deprecations from anonymous site visitors
  • Changed the handling of inline JavaScript code causing deprecation notices
  • Changed the admin bar to be two fixed links to avoid ever changing contexts
  • Changed the admin notices to be persistent when using legacy jQuery after upgrading to WordPress 5.6
  • Changed how concatenation is disabled, to address public-facing performance concerns
  • Fixed recommendation to remove plugin when not logging any deprecations having the wrong logic and not being displayed.

v 1.1.0

  • Added option to dismiss deprecation notices in backend
  • Added logging of deprecation notices in the front end
  • Added admin bar entry to show when deprecations occur
  • Added view of logged deprecations
  • Added dashboard notice encouraging users to remove the plugin if no deprecations have been logged in a while (1 week).
  • Changed the time interval between showing the dashboard nag from 2 weeks to 1 week, as WordPress 5.6 comes closer.

v 1.0.1

  • Napraw jedno z powiadomień dla administratora, które się nie ukrywają po odrzuceniu.

v 1.0.0

  • Pierwsze wydanie