I recently upgraded my blog software to the release candidate version of WordPress 3.0. I am very happy with how it performs, and am excited that WordPress and WordPress MU have merged. This will make the development process much easier, especially for those of us with WordPress MU sites.
There is one new “feature” that I don’t like, however. A new filter in version 3.0 will automatically change all instances of “Wordpress” (note the small “p”) in posts, titles, or comments to “WordPress”. While the later is technically the correct way to refer to the software, I philosophically do not like it when software changes the meaning of user’s words without their consent. How can one provide examples of mispellings? How can a blog owner ensure that the integrity of commenter’s remarks are left intact?
While a spelling assistant is nice at times, sometimes you need to break the rules.
I wrote a short plugin (actually, it is just three lines of code) to turn this filter off. You can download it from the WordPress plugin repository.
If you don’t feel like installing a plugin, you could delete the code associated with this filter in your WordPress install. Be sure to back up your files and database before you modify anything.
If you have any questions or comments, feel free to leave them below.
Tom Lany is a creative journalist, marketer, web developer, and a recent graduate of
Just a quick test comment…. I have to make sure it is possible to say “Wordpress” here!
[...] que te digan como escribir WordPress puedes revertir esta característica de WordPress 3.0 … con un plugin que te devuelve el control sobre como escribes lo que tu quieres en tu sitio: Remove Wordpress to WordPress filter. Un ejemplo [...]
[...] “Wordpress” to “WordPress” filter [...]
[...] “WordPress” to “WordPress” filter [...]
[...] feel strongly about this! Justin Tadlock has written a post about the capital P. Tom Lany has submitted a plug-in that disables the [...]
There’s now another ticket about this on WordPress trac.
[...] que te digan como escribir WordPress puedes revertir esta característica de WordPress 3.0 … con un plugin que te devuelve el control sobre como escribes lo que tu quieres en tu sitio: Remove WordPress to WordPress filter. Un ejemplo [...]
Much appreciated, thanks.
Ridiculous that my servers have to run the plugin code (trivial though it is) in order to avoid running some other code which is completely pointless, and breaks things for some people. Oh well.
I just upgraded my site to WordPress 3.0.1 and noticed that this plugin is broken. I have identified a fix and will update the plugin today or tomorrow.
The plugin has been updated to be compatible with WordPress 3.0.1. Please get an updated copy from the WordPress plugin directory.
Let me know if anyone has any problems, comments, suggestions, etc.
Tom,
I love your plugin – it will be of great use to people whose site is getting badly mangled by a poorly thought out filter.
I’ve found a way to get a filter priority so that the problems you had between 3.0 and 3.0.1 can be coded around. Please find it below.
foreach ( array('the_content', 'the_title', 'comment_text') as $filter ) {
$priority = has_filter($filter, 'capital_P_dangit');
if ( $priority !== false ) {
remove_filter( $filter, 'capital_P_dangit, $priority);
}
}
Thanks for the note, Matt!
This looks like a better way to filter out the priorities, so the plugin isn’t trying to remove a nonexistent filter (or filter with a designated priority level). I will take a look at this soon and might update the plugin when I get a chance.
Thanks again!
hi, i hope you can help? (pretty please)
on my clients site it removes all lowercase p in the content. i installed the plugin and it didn’t work.
http://www.harleystreetcoaching.org.uk/index.php/
thanks
chris
Looks like all of the p’s are there now. Could you detail the problem further?
I recently noticed that the way the filters work with comments is changing slightly yet again for WordPress 3.1.
I hope to have a new version of the plugin out before WordPress 3.1 is released to provide compatibility with these changes. Stay tuned.
This plugin has just been updated, using Matt’s suggestion above.
The priority of some of the filters is changing yet again in WordPress 3.1. The changes that were made this time will work will the priority numbers used in WordPress 3.0 and 3.1.
If that’s all greek to you, no worries, just go grab an updated copy of the plugin. The new version of the plugin will work with WordPress 3.0 and 3.1. Also, because of the way it is built there is a much better chance that it will work with more future versions of WordPress as well.