Title: WP jQuery Plus
Author: Zach Schnackel
Published: <strong>2012 年 5 月 18 日</strong>
Last modified: 2015 年 7 月 31 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-jquery-plus.svg)

# WP jQuery Plus

 作者：[Zach Schnackel](https://profiles.wordpress.org/zslabs/)

[下载](https://downloads.wordpress.org/plugin/wp-jquery-plus.1.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-jquery-plus/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-jquery-plus/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-jquery-plus/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-jquery-plus/#developers)

 [支持](https://wordpress.org/support/plugin/wp-jquery-plus/)

## 描述

Get the speed benefits of loading jQuery (and jQuery Migrate) from a CDN while providing
a fallback to the local version in the event the CDN is down. It also uses the same
version as WordPress does – automagically, so you’re never out of sync.

### Loading jQuery from cdnjs

By default, jQuery is loaded from [Google](https://developers.google.com/speed/libraries/)
with jQuery Migrate being loaded from [cdnjs](https://cdnjs.com/). If you’d like
to also load jQuery from [cdnjs](https://cdnjs.com/), add the following to `wp-config.
php`

    ```
    define('WPJP_USE_CDNJS', true);
    ```

## 安装

 1. Upload the `wp-jquery-plus` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Can you add `feature-x`?

Sure! I’m always open to knew ideas. Just create a new forum post and I’ll take 
a gander.

## 评价

![](https://secure.gravatar.com/avatar/bc248f07aded6aecc5c40cd06ea1cabce5a4fc651a8fc9bc099573200d840d61?
s=60&d=retro&r=g)

### 󠀁[1 of the best plugins I’ve used so far…](https://wordpress.org/support/topic/1-of-the-best-plugins-ive-used-so-far/)󠁿

 [VannDigital](https://profiles.wordpress.org/vdn-staff/) 2017 年 12 月 11 日

…and I hope it’ll still be maintained & updated.

![](https://secure.gravatar.com/avatar/d97a352bb796267afc38a5a016379c5ae12e10d76342d51db8ff59d4f03e2f79?
s=60&d=retro&r=g)

### 󠀁[works great](https://wordpress.org/support/topic/works-great-333/)󠁿

 [](https://profiles.wordpress.org/lne1030/) 2016 年 9 月 8 日 1 回复

Really a simple and effective plugins.

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/)

## 贡献者及开发者

「WP jQuery Plus」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Zach Schnackel ](https://profiles.wordpress.org/zslabs/)

[帮助将「WP jQuery Plus」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-jquery-plus)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-jquery-plus/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-jquery-plus/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-jquery-plus/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-jquery-plus/)。

## 更新日志

#### 1.1.2

 * Restore PHP 5.3 compatability because I’m a nice guy 😉

#### 1.1.1

 * Quick-note about PHP 5.4 requirement

#### 1.1.0

 * Tested in 4.2.3
 * Loading jQuery Migrate from [cdnjs](https://cdnjs.com/)
 * Added option to load jQuery from [cdnjs](https://cdnjs.com/)

#### 1.0.1

 * Tested in 3.8
 * Updated description about fallback use-case.

#### 1.0

 * Make sure jQuery is enqueued
 * This puppy should be ready to go! Now considered feature-complete.

#### 0.5

 * Added 3.6 check (since the jQuery handle was changed) and updated accordingly
   to work in both 3.5 and 3.6.

#### 0.4.2

 * Source credits given for local fallback

#### 0.4.1

 * Updated readme requirements

#### 0.4

 * Added local fallback to bundled jQuery in the event CDN is down

#### 0.3

 * Test push using https://github.com/benbalter/Github-to-WordPress-Plugin-Directory-
   Deployment-Script

#### 0.2

 * Removed CURL function (if Google is down, the entire Internet is down)

#### 0.1

 * Initial release

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**11 年前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-jquery-plus/)
 * 标签
 * [cdn](https://cn.wordpress.org/plugins/tags/cdn/)[CDNJS](https://cn.wordpress.org/plugins/tags/cdnjs/)
   [google](https://cn.wordpress.org/plugins/tags/google/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
   [jquery-migrate](https://cn.wordpress.org/plugins/tags/jquery-migrate/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-jquery-plus/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-jquery-plus/reviews/)

## 贡献者

 *   [ Zach Schnackel ](https://profiles.wordpress.org/zslabs/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-jquery-plus/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EEMPDX7SN4RFW)