“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 do not like it when software changes the meaning of user’s words without their consent. How can one provide examples of misspellings? How can a blog owner ensure that the integrity of commenter’s remarks are left intact?

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 have any questions or comments, feel free to leave them below.

13 Responses to “Wordpress” to “WordPress” filter

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

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

  3. 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!

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