Title: Proper Network Activation
Author: scribu
Published: <strong>2010 年 7 月 8 日</strong>
Last modified: 2013 年 3 月 14 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/proper-network-activation.svg)

# Proper Network Activation

 作者：[scribu](https://profiles.wordpress.org/scribu/)

[下载](https://downloads.wordpress.org/plugin/proper-network-activation.zip)

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

 [支持](https://wordpress.org/support/plugin/proper-network-activation/)

## 描述

When running WordPress MultiSite, you have a very handy feature called network activation.
It allows you to activate a plugin for the entire network of sites. The trouble 
is that it only does half the job.

Some plugins have an install procedure that is meant to be run only on activation.
However, when you do a network activation, that install procedure is only run for
the current site. So, you end up with plugins not working properly on all the other
sites.

What this plugin does:

 * when doing a network de/activation, it triggers the de/activation hook on all
   sites in the network
 * when creating a new site, it triggers the activation hook for all active network
   plugins on that site

Links: [Plugin News](http://scribu.net/wordpress/proper-network-activation) | [Author’s Site](http://scribu.net)

#### Development

 * Contribute Code at [https://github.com/scribu/wp-proper-network-activation](https://github.com/scribu/wp-proper-network-activation)
 * Contribute Translations at [https://translate.foe-services.de/projects/proper-network-activation](https://translate.foe-services.de/projects/proper-network-activation)

## 安装

 1. Download and unzip
 2. Put the proper-network-activation.php file in /wp-content/mu-plugins/

OR:

 1. Install automatically from the WordPress admin
 2. Activate it network wide

## 常见问题

  Error on activation: “Parse error: syntax error, unexpected…”

Make sure your host is running PHP 5. The only foolproof way to do this is to add
this line to wp-config.php (after the opening `<?php` tag):

    ```
    var_dump(PHP_VERSION);
    ```

## 评价

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

### 󠀁[2019- It seems to work or wp updated the process](https://wordpress.org/support/topic/2019-it-seems-to-work-or-wp-updated-the-process/)󠁿

 [joeyjosay](https://profiles.wordpress.org/joeyjosay/) 2019 年 9 月 16 日

From what I can tell, all my plugin activate properly in 2019. Is it from wp core
doing it properly or is it the plugin still working… I don’t know but everything
is ok… sooooooo…

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

### 󠀁[wrong submit…](https://wordpress.org/support/topic/not-working-properly-with-452/)󠁿

 [vlasterx](https://profiles.wordpress.org/vlasterx/) 2016 年 9 月 3 日

wrong submit… someone delete this comment.

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/proper-network-activation/reviews/)

## 贡献者及开发者

「Proper Network Activation」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)

[帮助将「Proper Network Activation」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/proper-network-activation)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.5

 * full internationalization support + German translation. props cfoellmann

#### 1.0.4

 * more obvious user messages
 * fixed notice

#### 1.0.3

 * prevent double activation for current blog
 * WP 3.1 compatibility

#### 1.0.2

 * fix fatal error due to undefined html() function

#### 1.0.1

 * activate 5 sites a time, via AJAX requests

#### 1.0

 * initial release
 * [more info](http://scribu.net/wordpress/proper-network-activation/pna-1-0.html)

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**13 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/proper-network-activation/)
 * 标签
 * [activation](https://cn.wordpress.org/plugins/tags/activation/)[admin](https://cn.wordpress.org/plugins/tags/admin/)
   [multisite](https://cn.wordpress.org/plugins/tags/multisite/)[plugins](https://cn.wordpress.org/plugins/tags/plugins/)
 *  [高级视图](https://cn.wordpress.org/plugins/proper-network-activation/advanced/)

## 评级

 4.3 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/proper-network-activation/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/proper-network-activation/reviews/)

## 贡献者

 *   [ scribu ](https://profiles.wordpress.org/scribu/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/proper-network-activation/)