Technosailor.com Readers! Donate today to assist the MADRE Haiti Medical Relief in their efforts.

5 March 2008 7 Comments

Funny WordPress Plugin Sneaks In

One of the annoyances we have at b5media is when people spell our company name wrong. We’ve even had our own people spell the name wrong. So annoying. :-)

Somewhere along the line last year, this universal plugin snuck into our build. I don’t know where it came from or who wrote it. (whistles) It solves the problem though. :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/*
Plugin Name: Spell the Fucking Name Right
Description: b5media is spelled lower case b number 5 no space lowercase media
*/

function b5_is_spelled_with_a_lowercase_b_and_no_space( $content )
{
  return str_replace(array('B5media', 'B5 media', 'B5 Media'), 'b5media', $content);
}

apply_filters('the_content', 'b5_is_spelled_with_a_lowercase_b_and_no_space');
apply_filters('the_title', 'b5_is_spelled_with_a_lowercase_b_and_no_space');

?>

Pick up your copy of the WordPress Bible, a wildly popular resource for beginners and experts alike.

Popularity: 1% [?]

7 Responses to “Funny WordPress Plugin Sneaks In”

  1. Devin Reams 5 March 2008 at 2:11 pm #

    Ah, this is a universal blog network (9rules) problem? ;)

  2. Adam 5 March 2008 at 3:37 pm #

    That is awesome. Love the blog keep up the great work.

  3. Adam Dempsey 6 March 2008 at 6:15 am #

    Haha nice! I like the plugin name!

  4. Tech Bold 22 July 2008 at 12:47 pm #

    LOL! May be 9rules are thinking about using it. :D

  5. leanne king 29 July 2008 at 10:39 pm #

    love it :)

  6. leanne king 29 July 2008 at 10:39 pm #

    love it :)

  7. leanne king 29 July 2008 at 10:39 pm #

    love it :)