このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Remove WordPress to WordPress filter

説明

In WordPress 3.0 and later, a default filter changes all instances of “WordPress” (note the small “p”) in posts, titles, and comments to “WordPress”. For various reasons, 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 and is applied in 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 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:

評価

4件のレビューをすべて表示

貢献者と開発者

Remove WordPress to WordPress filter はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Remove WordPress to WordPress filter” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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

  • プラグインをリリース