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.

categories Open Source, PHP
tags blogging, wordpress

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 pingbacked on February 19th, 2005 at 1:36 am

Leave a 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

  • Search

  • Subscribe

    Subscribe All Posts
    Subscribe All Comments
    Subscribe All Bookmarks
    Subscribe with Bloglines Subscribe with My Yahoo Add to netvibes Subscribe in NewsGator Online Add to Google
  • Share This

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (16)
    • Open Source (14)
    • PHP (95)
    • Software Design (28)
    • Usability (14)
    • WACT (7)
    • Web Design (20)
  • Recent Comments

    • Sarah Snow Stever  26
      Massimo, arabcrunch, Dubai Web Design, Development [...]
    • The PHP scalability saga continues  17
      vaginal, uceqlehwigi, panties [...]
    • Keywords and Language Simplicity  9
      Programmer, cfbow, olmse [...]
    • PHP 5.1 is out  8
      Preteen, Soma, teedattaltY [...]
    • goto in PHP  39
      jistanidiot, Goldilocks, [...]
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  105
      Massimo, jitesh Shetty, Jesse [...]
    • WordPress BBCode Plugin  24
      ?????? ??, ?????? ??, smolenskiy [...]
    • Why is PHP Popular?  24
      art.ru, agened.ru, visasim.ru [...]
    • nofollow and comment spam  7
      Pwhndvve, Massa, che spavento, Scopmazo [...]
    • Why is PHP Code Considered Hard to Maintain?  25
      bez-riska.ru, Visitor338, Cody [...]
    • PHP Scalability and Performance  7
      youporn, kvz, John Loehrer [...]
  • Pages

    • Tags
  • Recent Posts

    • 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)
    • Keywords and Language Simplicity
    • Improved Error Messages in PHP 5
    • Michigan Taxes Graphic Design Services
    • Ruby versus PHP or There and Back Again
  • Archives

    • 2008: May
    • 2007: Jan Feb Mar Apr May Sep Oct Nov
    • 2006: Jan Feb Mar Apr May Jun Jul Oct Nov Dec
    • 2005: Jan Feb Mar Apr May Sep Oct Nov Dec
    • 2004: Apr May Jun Jul Aug Sep Oct Nov
  • Menu

    • Register
    • Log in