“Wordpress” to “WordPress” filter

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.

16 Responses to “Wordpress” to “WordPress” filter

  1. Tom says:

    Just a quick test comment…. I have to make sure it is possible to say “Wordpress” here!

  2. [...] 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 [...]

  3. [...] “Wordpress” to “WordPress” filter [...]

  4. [...] “WordPress” to “WordPress” filter [...]

  5. [...] feel strongly about this! Justin Tadlock has written a post about the capital P. Tom Lany has submitted a plug-in that disables the [...]

  6. [...] 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 [...]

  7. CiaranG says:

    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.

  8. Tom says:

    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.

  9. Matt says:


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

    • Tom says:

      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!

  10. chris ames says:

    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.



  11. Tom says:

    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.

  12. Tom says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>