Title: DisableMU
Author: Dave McHale
Published: <strong>2014 年 8 月 26 日</strong>
Last modified: 2016 年 2 月 9 日

---

搜索插件

![](https://ps.w.org/disablemu/assets/banner-772x250.png?rev=973538)

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

![](https://ps.w.org/disablemu/assets/icon-256x256.png?rev=973538)

# DisableMU

 作者：[Dave McHale](https://profiles.wordpress.org/dmchale/)

[下载](https://downloads.wordpress.org/plugin/disablemu.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/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. 通过WordPress的的“Plugins”菜单激活插件

## 常见问题

#### 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!

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Dave McHale ](https://profiles.wordpress.org/dmchale/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 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

## 额外信息

 *  版本 **1.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/disablemu/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[mu-plugins](https://cn.wordpress.org/plugins/tags/mu-plugins/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/disablemu/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/disablemu/reviews/)

## 贡献者

 *   [ Dave McHale ](https://profiles.wordpress.org/dmchale/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/disablemu/)