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

DisableMU

描述

Redefines the location of the /mu-plugins directory, via writing constants to your wp-config.php file, to ensure that no code published to the default location will automatically run on your website.

Since many site administrators are not using /mu-plugins, we want to be sure that no mu-plugins “suddenly” appear on our website due to their nature: auto-activation is BAD when you didn’t intend for code to be there!

DisableMU is not for every website. Many development houses, system admins, and hosting companies have very legitimate uses for /mu-plugins and have built business plans around utilizing this feature of WordPress. By installing and activating DisableMU on your website, you may break things. Please exercise caution and only utilize this plugin if you know what you are doing. As with most plugins, DisableMU is written with the intent of being helpful but you are responsible for its use or actions on your own website.

安裝

  1. Upload the disablemu directory to the /wp-content/plugins/ directory via FTP
  2. Alternatively, upload the disablemu_v#.#.zip file to the ‘Plugins->Add New’ page in your WordPress admin area
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

What other features will you add to this plugin?

Kicking around ideas, but always open to user input as well. Currently debating…

  1. Deletion of /mu-plugins directory, if found
  2. Creating cron to cycle the fake directory name (don’t want to do this too frequently though since it touches wp-config.php)

If you definitely want to see one of these, or have an idea of your own, let me know!

評價

There are no reviews for this plugin.

貢獻者及開發者

“DisableMU” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 DisableMU 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1

  • Moved where definitions live inside wp-config.php, to ensure it is always ABOVE the wp-settings.php include
  • Updated CONST definitions to be proper directory/url paths instead of partials
  • Updated CONST definitions to remove the “if isDefined()” checks. We want to ensure that WE always take precedence.

1.0

  • Initial Release