Title: Remove WordPress to WordPress filter
Author: Tom Lany
Published: <strong>2010 年 5 月 30 日</strong>
Last modified: 2021 年 4 月 9 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/remove-wordpress-to-wordpress-filter.
svg)

# Remove WordPress to WordPress filter

 作者：[Tom Lany](https://profiles.wordpress.org/tomthewebmaster/)

[下载](https://downloads.wordpress.org/plugin/remove-wordpress-to-wordpress-filter.zip)

 * [详情](https://cn.wordpress.org/plugins/remove-wordpress-to-wordpress-filter/#description)
 * [评价](https://cn.wordpress.org/plugins/remove-wordpress-to-wordpress-filter/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/remove-wordpress-to-wordpress-filter/#developers)

 [支持](https://wordpress.org/support/plugin/remove-wordpress-to-wordpress-filter/)

## 描述

In WordPress 3.0 and later, [a default filter](https://core.trac.wordpress.org/changeset/14996)
changes all instances of “WordPress” (note the small “p”) in posts, titles, and 
comments to “WordPress”. [For various reasons](https://core.trac.wordpress.org/ticket/13583),
such as preserving spelling in existing posts and comments, a blog owner may want
to turn this filter off. That is what this plugin does.

Simply upload the plugin files to your WordPress plugins folder, activate it on 
your blog’s Plugin administration page, and you are set!

### Technical Details

This plugin seeks to disable the capital_P_dangit function, which is the WordPress
function that disallows “WordPress” to be used on blogs.

The filter is defined in [wp-includes/default-filters.php](https://core.trac.wordpress.org/browser/trunk/src/wp-includes/default-filters.php)
and is applied in [wp-includes/formatting.php](https://core.trac.wordpress.org/browser/trunk/src/wp-includes/formatting.php)
of the core WordPress code.

The remove_filter function is used in this plugin to undo the add_filter function
applied in wp-includes/formatting.php. In versions 1.0 and 1.1 of this plugin, the
function was removed for certain priority levels. As of version 1.2, this plugin
removes the filter for all possible priority levels. Thanks to [Matt Robinson](http://subscribe2.wordpress.com/)
for suggesting this method and providing code that is used in the plugin.

For more information regarding how this function is applied in WordPress, the following
are the relevant changesets to the core WordPress code regarding this function:

 * [Changes made for WordPress 3.0](https://core.trac.wordpress.org/changeset/14996/)
 * [Changes made for WordPress 3.0.1](https://core.trac.wordpress.org/changeset/15377/)
 * [Changes made for WordPress 3.1](https://core.trac.wordpress.org/changeset/15877/)
 * [Changes made for WordPress 3.5](https://core.trac.wordpress.org/changeset/21242/)
 * [Changes made for WordPress 3.7](https://core.trac.wordpress.org/changeset/25093/)
 * [Changes made for WordPress 3.8](https://core.trac.wordpress.org/changeset/26122/)

## 评价

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

### 󠀁[Brilliant](https://wordpress.org/support/topic/brilliant-754/)󠁿

 [hatesspam](https://profiles.wordpress.org/hatesspam/) 2018 年 6 月 4 日

Works exactly as advertised.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/remove-wordpress-to-wordpress-filter/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Tom Lany ](https://profiles.wordpress.org/tomthewebmaster/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### Version 1.3

 * Turn filter off for wp_title.
 * Minor code cleanup.

#### Version 1.2

 * Some priority levels for this function have changed yet again in WordPress 3.1,
   making it again necessary to change the filters. This plugin now removes the 
   filter for all possible priority levels. Thanks to [Matt Robinson](http://subscribe2.wordpress.com/)
   for suggesting this method and providing code that is used in the plugin. This
   change makes the plugin compatible with WordPress 3.1, and it is still compatible
   with the WordPress 3.0 branch.
 * Additional technical documentation has been added.

#### Version 1.1

 * The filters were changed slightly in WordPress 3.0.1. This update is compatible
   with these new filters.

#### Version 1.0

 * Initial release

## 额外信息

 *  版本 **1.3**
 *  最后更新：**5 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.7.15**
 *  语言
 * [English (US)](https://wordpress.org/plugins/remove-wordpress-to-wordpress-filter/)
 * 标签
 * [filter](https://cn.wordpress.org/plugins/tags/filter/)[filters](https://cn.wordpress.org/plugins/tags/filters/)
   [WordPress](https://cn.wordpress.org/plugins/tags/wordpress/)
 *  [高级视图](https://cn.wordpress.org/plugins/remove-wordpress-to-wordpress-filter/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/remove-wordpress-to-wordpress-filter/reviews/)

## 贡献者

 *   [ Tom Lany ](https://profiles.wordpress.org/tomthewebmaster/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/remove-wordpress-to-wordpress-filter/)