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

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 | Author’s Site

Development

安裝方式

  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);

使用者評論

閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Proper Network Activation〉的開發相關工作。

參與者

將〈Proper Network Activation〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

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