Upgrading WordPress MU 2.9.2 to WordPress 3.0

WordPress 3.0 was officially released today. The main feature of the WordPress 3.0 is the merge of WordPress MU. In this post, I’ll cover upgrading WordPress MU 2.9.2 to WordPress 3.0. You should always backup your databases before attempting to upgrade WordPress. If you are not sure how to backup your database, you can find complete instructions in the WordPress Codex. If you are upgrading from WordPress 2.9.2 standard and want to enable multisite, then follow the instructions on this post instead.

Upgrade WordPress:

You can upgrade WordPress by following the link in the update message at the top or by going to the Upgrade screen under Tools. Return to the dashboard after upgrading. You will have to login again after the upgrade.

Update wp-config.php:

WordPress encrypts cookies but you must add NONCE_SALT code shown at the top of the admin area to wp-config.php. For example: define( 'NONCE_SALT', 'a<u3S[ g<.4I)#p^-iy?sbb3JPu+W~-Zk|aPLMN[TvoiHIKGI_bbB-h?iliBb2ra' ). This code will be unique to your installation. Add it above the line that says: /* That's all, stop editing! Happy blogging. */

define( "WP_USE_MULTIPLE_DB", false );

define( 'NONCE_SALT', 'a<U3S[ g<.4I)#p^-iy?sbb3JPu+W~-Zk|aPLMN[TvoiHIKGI_bbB-h?iliBb2ra' );

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Update Network:

Follow the link at the top to the Update Network screen or browse to the Update screen under Super Admin to update all sites(blogs) in your network.

Update Rewrite Rules:

The wp-content/blogs.php file was deprecated in WordPress 3.0 and you must update the rewrite rules to use wp-includes/ms-files.php. Replace wp-content/blogs.php with wp-includes/ms-files.php in .htaccess and delete wp-content/blogs.php.

RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

WordPress 3.0 Released

Happy Thursday and just to make your day a little better WordPress 3.0 “Thelonious”, named in honor of Thelonious Monk, has been released. You can easily upgrade from your dashboard by going to Tools > Upgrade or from the update message at the top of the dashboard.

The single most important feature of WordPress 3.0 is the WPMU merge which allows you to easily manage a network of sites (blogs) on a single WordPress install. You can find the instructions for enabling multisite here.

The WordPress 3.0 development cycle included over 1200 tickets (bugs and enhancements).

You can download WordPress 3.0 here and read the official release announcement on the WordPress Development Blog.

WordPress 3.0 Release Candidate 3

The third release candidate (RC3) for WordPress 3.0 is now available. This will most likely be the last release candidate before WordPress 3.0 is released at some point next week. So if you are the adventurous kind and would like to contribute to WordPress, then download the release candidate here and provide your feedback.

What’s an RC? An RC comes after beta and before the final launch. It means we think we’ve got everything done: all features finished, all bugs squashed, and all potential issues addressed. But, then, with over 20 million people using WordPress with a wide variety of configurations and hosting setups, it’s entirely possible that we’ve missed something.

Download WordPress 3.0 Release Candidate 3