Our team has run in to a problem working with WordPress 3 multisite. We usually work with a local copy of the site (localhost/testsite) but with the same database to keep all changes up to date.
This works fine in a single install because you can override the database configs from PHP with:
define( 'URL', $path ); define( 'WP_HOME', $path ); define( 'WP_SITEURL', $path ); define( 'WP_CONTENT_URL', $path . '/wp-content' );
But this doesn't work on the multisite because of the extra tables (
wp_site) and they have the path to the blog in their settings.
Does anyone know how to override these settings? I would like the site to run on domain localhost for our developers, developerdomain.com for our test servers and then realdomain.com when the site goes live.
It feels kind of like overkill if we have to set up different databases for each of them and change the domain and path manually and then copy the post, blog and user data between the databases to do debugging and continue the development...