该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • Initial version