Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Exceptional PHP
WordPress BBCode Plugin »

Upgraded to WordPress 1.2

May 26th, 2004

Well, I upgraded to WordPress 1.2 today. Things did not go without a hitch. The cookie format changed, so I had to remove my cookies before I could log back in to the admin section. My feeds were down for part of the day until I realized I had to update my .htaccess file. Looking at the WordPress support forums, these look like common problems. That and a magic_quotes problem. These were minor issues.

The biggest problem for me by far, though was that WordPress 1.0.2 supported BBCode, which I used for my posts. WordPress 1.2 does not. So after my upgrade, it looked like I had three options: restore my backup, edit my all my posts, or add BBCode support to WordPress.

Of course I added BBCode support to WordPress because that only took 10 times as long as editing all of my posts to use one of the other markup styles provided. :)

I started with PEAR:: HTML_BBCodeParser. Unfortunately some of its markup processing is brittle and the design could be better. I fixed its case sensitivity and changed some of the markup generated to pass the XSS filter that WordPress uses. I also de-PEAR-ified it, making it easier to distribute as a plug in.

I also had a problem with the WordPress plugin protocol failing to call one of my hooks at the right time, causing my BBCode not to be processed in my feeds. It took me a while to find and fix this problem. Sadly, there was nothing I could do in the plugin. The fix required modifying WordPress. But, hey, plugins are a new feature of 1.2. Unfortunately, my embarrassing broken feed was captured forever at artima.

When I first installed this software, I told myself that I wouldn’t even look at the code, I would just use it like Joe User would. That didn’t last.

Filed Under

  • Open Source, PHP

Related Posts

  • Upgraded to WordPress 1.5
  • A WordPress bug fix
  • WordPress Search Engine Spam
  • WordPress BBCode Plugin
  • The Problem with Markup Languages
You can leave a response, or trackback from your own site.

One Response to “Upgraded to WordPress 1.2”

  1. Jeff Moore’s Blog » Blog Archive » Upgraded to WordPress 1.5 says:
    2/19/2005 at 1:36 am

    [...] to have gone well. The upgrade from 1.2 to 1.5 was much less error prone than the upgrade from 1.02 to 1.2. The upgrade process is very well done. My BBCode pl [...]

Leave a Reply

Click here to cancel reply.

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

code: use [code=php][/code].

Comment Preview

    Subscribe Feed
    Share Subscribe to this blog…
    Share Bookmark or share this page…
  • About

    My name is Jeff Moore. I'm a PHP programmer living in San Francico and working for a startup.

    More about me…

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (17)
    • Open Source (14)
    • PHP (98)
    • Software Design (29)
    • Usability (14)
    • Web Design (20)
  • Recent Comments

    • Programming Language Trends via Google  19
      Craigslist pva, jessica, Scott [...]
    • Looking Towards the Cloud  35
      bentonville multiple listing, cosmetic dental, Sam Brodish [...]
    • PHP versus ASP  8
      Marhta Blight, Ravi, Ryan Brooks [...]
    • How to Transfer Mac OS X Application Data between Computers  59
      Website Migration, harry the computer support guy, Dotty Salvage [...]
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  157
      lehuuphuc, Robert Parthemer, Lingerie Intimate [...]
    • PHP Games  25
      jessica, Tennille Cranor at Chilli Plants, Lucas Ortell [...]
    • un-PEAR-ing  5
      jessica, Eugene Panin, Arnaud [...]
    • The Legality of Republishing RSS Feeds  23
      kevinxiao, Marissa Miscovich, Quick Student Loans [...]
    • Faster Page Loading  4
      jessica, angular cheilitis, Aaron Rosenfeld [...]
    • PDO versus MDB2  15
      jessica, kevinxiao, Gavin [...]
  • Recent Posts

    • ZendCon: Writing Maintainable PHP Code
    • Looking Towards the Cloud
    • Holiday Tech Support
    • Closures are coming to PHP
    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)
  • Site

    • Archives
    • Log in
  • Search