這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Disable jQuery Migrate

描述

A simple plugin to disable loading of jquery-migrate on the frontend due to a XSS vulerability of jQuery Migrate 1.2.1.
More details here: https://github.com/jquery/jquery-migrate/issues/36

It’s also one thing less to load where it counts.

Props to people in this thread: https://wordpress.org/support/topic/removing-the-default-jquery-and-migrate-from-the-header-in-last-version-of-wp?replies=6.

安裝

  1. Upload contents of the plugin zip file to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Profit

常見問題

Why is the jQuery-migrate needed?

There are still some dependencies in WP-Admin that require it to be present. Most up-to-date frontend code and plugins don’t require it however so theres no reason to load it there.

Can this break my site?

Yes, possibly. Some plugins on your frontend might count on jquery-migrate beign available

評價

2017年7月26日
No idea why wordpress doesn't allows to turn this annoying thing off - but this plugin helps instantly. Thank you!!!
2017年4月5日
It removes the jquery migrate javacript file. After installing you have to test your site (open your browser with firebug / debug - F12) to make sure you are not using old versions of jquery.
閱讀全部2個評價

貢獻者及開發者

“Disable jQuery Migrate” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Disable jQuery Migrate 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Initial version