Hey hallo Chris, about your question you could be under the impression that if the database needs to be upgraded, a redirect to wp-admin/upgrade.php
is performed upon logging in for both single site and sub-sites of a Multisite install.However, that’s not the case, the redirect is only performed for single site. Multisite still tries a full network upgrade viawp_remote_get()
.
I also do believe database cannot be upgraded in multisite if loopback is disabled.the database is never upgraded from the normal upgrade process.
At least manually going to /wp-admin/upgrade.php
and all /subsite/wp-admin/upgrade.php
could help fix it.
Try these steps;
1) Get a server where loopback is disabled (or perhaps simulate it using the pre_http_request filter)
2) Install multisite using WP 3.0
3) Create a subsite
4) Upgrade to latest WP version using the link in the admin
5) Check the database version in the wp_options, wp_x_options table
use this code to add the version into dashboard
<>add_action(‘rightnow_end’,’dbversion’);
<>function dbversion(){
<> $dbv = get_option(‘db_version’);
<> echo “DB Version: $dbv”;
6) Log in/out to main site and subsite – database version remains at the old level
7) Manually visit the /subsite/wp-admin/upgrade.php page and upgrade it’s database. The subsite db version will now be correct, but the main site will not until /wp-admin/upgrade.php is also visited
Hope this helps