Pirate filter fix

Michael Heilemann wrote:

> Hey Dougal.
>
> I get the following error when I try to comment on my site with the
> pirate plugin turned on:
>
> Database error: [You have an error in your SQL syntax. Check the manual
> [...]
>
> I’m running 1.2. Any ideas?
>
> – Mike
> http://binarybonsai.com


Doh! I forgot to announce the fix for that! I discovered the problem on Friday, but I didn’t have time to write it up, and then later I forgot about it.

At the end of tfs-pirate.php, change the final if statement. Instead of

  add_filter('all','pirate');

Do:

  add_filter('the_content','pirate');
  add_filter('comment_text','pirate');

Or just re-download the package, I've updated it with the fix.

Stumble It!
Pirate filter fix

Related posts:

  1. Text Filter Suite Plugin for WordPress
    "Since Talk Like a Pirate Day is only three weeks away, I spent some time this weekend revamping my old Fun Filters hack. The result..."
  2. Talk Like a Pirate (and TFS updates)
    " Talk Like a Pirate Day is next Monday (September 19), less than a week away. Dust off your eyepatch, dig up that gold hoop..."
  3. Yarrr! It’s Talk Like a Pirate Day!
    "Once again, we have arrived on Talk Like a Pirate Day. I had been hoping that I would be able to find time to upgrade..."
  4. Happy Talk Like a Pirate Day!
    " Ahoy, me maties! It’s Talk Like a Pirate Day once again, and as I’m sure you’ve noticed, I’ve spruced my site up for the..."
  5. Happy Talk Like a Pirate Day!
    " Ahoy! It’s time fer Talk Like a Pirate Day again! Don’t forget t' install me Text Filter Suite Plugin if ye want t' get..."
This entry was posted in Pirates, Plugins, TalkLikeAPirate, WordPress and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. ryoken ryo-baka.net
    Posted September 19, 2004 at 4:18 pm | Permalink

    i shoulda known the zip wouldn’t be fixed…

  2. Dougal Campbell dougal.gunters.org
    Posted September 19, 2004 at 8:55 pm | Permalink

    I updated both the zip and the tarball with the fixed version of tfs-pirate.php.

  3. win pawnauctions.net
    Posted September 28, 2005 at 3:05 pm | Permalink

    In your free time, take a look at the pages about…

One Trackback

  1. By Citypress CVS on October 5, 2004 at 1:57 pm

    the end of tfs-pirate.php, change the final if statement. Instead of add_filter(‘all’,'pirate’); Do: add_filter(‘the_content’,'pirate’); add_filter(‘comment_text’,'pirate’); Or just re-download the package, I’ve updated it with the fix. View source article

Post a Comment

Your email is never published nor shared.

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>

Subscribe without commenting