Title: Restrict Multisite Widgets
Author: Adam Harley (Kawauso)
Published: <strong>2010 年 8 月 10 日</strong>
Last modified: 2011 年 7 月 19 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/restrict-multisite-widgets.svg)

# Restrict Multisite Widgets

 作者：[Adam Harley (Kawauso)](https://profiles.wordpress.org/kawauso/)

[下载](https://downloads.wordpress.org/plugin/restrict-multisite-widgets.1.1.4.zip)

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

 [支持](https://wordpress.org/support/plugin/restrict-multisite-widgets/)

## 描述

A quick adaptation of the theme restriction code for widgets. Can only restrict 
on a site-wide basis, though it will only affect those sites on which it’s activated.
Does not restrict super admins. Plugins **must** be active on the main site to be
controlled by this plugin (this is an issue with WordPress’ plugin structure).

See also: [Restrict Multisite Plugins](https://wordpress.org/extend/plugins/restrict-multisite-plugins/)

## 安装

 1. Upload `restrict-multisite-widgets.php` to `/wp-content/plugins/` directory
 2. Network Activate the plugin through the ‘Plugins’ menu OR Activate the plugin through
    the ‘Plugins’ menu of every WordPress site you wish to restrict
 3. Select widgets to make available under the ‘Widget Restrictions’ section in the‘
    Themes’ menu in the Network Admin or ‘Widgets’ section in the ‘Super Admin’ menu

## 常见问题

  Can I enable widgets only for individual sites?

No. You can as a Network Admin however activate widgets for individual sites without
restrictions.

  Will this plugin affect widgets already activated by site admins?

Yes. If a widget is activated by a site admin and disabled by this plugin, it will
be disabled immediately.

  Why doesn’t this plugin display widgets I’ve activated on a single site? / Why
does this plugin display widgets I’ve activated on my main site?

Due to the way WordPress MultiSite is written, it isn’t possible for the plugin 
to reliably detect what widgets are available on sites other than the main site.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Restrict Multisite Widgets」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Adam Harley (Kawauso) ](https://profiles.wordpress.org/kawauso/)

[帮助将「Restrict Multisite Widgets」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/restrict-multisite-widgets)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.4

 * Fixed bug with removing single instance widgets introduced in 1.1.3 (thanks israelwebdev)

#### 1.1.3

 * Activation state check for menus to support single blog activation
 * Fixed single instance widget detection (PHP isset() quirk)
 * Moved to native single instance widget removal

#### 1.1.2

 * Changed class loading to admin-only to avoid unintentional frontend restrictions(
   thanks dwieeb)

#### 1.1.1

 * Improved support for older plugin widgets
 * Standardised capability used to ‘manage_network_themes’
 * Changed plugin class back to dynamic callbacks

#### 1.1

 * Added support for Network Admin
 * Moved page to Network Admin -> Themes -> Widget Restrictions under WordPress 
   3.1 and higher
 * Changed plugin class to static callbacks

#### 1.0

 * First public release

## 额外信息

 *  版本 **1.1.4**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/restrict-multisite-widgets/)
 * 标签
 * [multisite](https://cn.wordpress.org/plugins/tags/multisite/)[restrict](https://cn.wordpress.org/plugins/tags/restrict/)
   [widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/restrict-multisite-widgets/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/restrict-multisite-widgets/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/restrict-multisite-widgets/reviews/)

## 贡献者

 *   [ Adam Harley (Kawauso) ](https://profiles.wordpress.org/kawauso/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/restrict-multisite-widgets/)