Menu Home

WordPress 2.2 is out

WordPress 2.2 is out and has at least one really useful feature that I’ve already used.

I backup my blog software and database on a nightly schedule. The whole works, database and files gets copied to my backup server on a VPS.

Testing the backup is a pain since the database points to the real URL and hostname. Now with 2.2 you can override the site url and wordpress home with these two lines in your wp-config.php file:

define(‘WP_SITEURL’, ‘’);
define(‘WP_HOME’, ‘’);

I created a new backup and restored it on my VPS server. I made that change to the wp-config.php file to point to the name and location of the backup server. Now all the links and administration work fine referencing the real hostname.

See for more information. This feature lets you test your database on another server and play around without impacting your real blog.

Categories: Geek Software

Tagged as:

Jan Dembowski

3 replies

  1. I’ve upgraded my blog to 2.2, but I’m having trouble.

    Carriage returns no longer equal line breaks and I have to edit the comment and put in the paragraph markers. This is retroactive to all my comments and it happens both in the admin panel and on blog.

    It’s a mess.

  2. That’s weird. WordPress 2.2 went in very smoothly on this site.

    I’ve had that happen to me when I moved my blog from one server to another (and is why I keep the last 30 days of my database and files as a backup).

    If you have the database backed up, and you know what the characters to change are, you might want to try search and replace to put back the line breaks.

    If you have not fixed it yet, try posting the problem on the WordPress support page and maybe someone can help you out.

    Edit: And looking at your blog I see that you have it mostly in hand already 🙂 Good feedback from Otto.