WordPress Has A Slight Evil Tendency

March 8th, 2005

When importing entries from MovableType into Wordpress, it doesn’t enable trackback pings on the imported entries.  Now I have about 300 old posts that don’t have trackback enabled.  Anyone know how to enable pings enmass?

Oh and yeah, that’s about the most evil thing I’ve found about Wordpress so far, overall I’m very impressed but I’d hate to ruin my evil theme for the evening now…

PHP Is Evil

March 8th, 2005

Okay maybe not evil, just braindead in this particular area but I’ve got a theme going this afternoon.

If you have multiple form elements with the same name in a HTML form, PHP discards all but the last of them unless the element’s names end with [].  How’s idea was that?  Didn’t anyone consider the fact that you might not have control over the form element’s names?  Or that dealing with form elements with special characters in their names might just be difficult (the PHP manual has a number of useful tips on how to handle it).

It seems to me that a dynamically typed language like PHP should be capable of working out for itself whether an array is needed for those elements or not.  Sigh.

IIS Is Evil

March 8th, 2005

Here’s a tip, if you configure IIS to use a custom 404 error page (or any type of error I imagine) and use the “URL” type, IIS will return 200 OK by default instead of the appropriate error code.  This breaks things in very unexpected and often difficult to track down ways.

You can work around it by making sure that the URL you use for the error page is a script of some kind that sets the return code to the appropriate error code again.  The default however should really have been to preserve the error code.  Sigh.  Using “File” or “Default” for the error page works correctly.