Fix table prefix on upgrade for 3.0 main site, Fixes #11970
git-svn-id: http://svn.automattic.com/wordpress/trunk@12808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2caa9c7e40
commit
bb8c644797
|
@ -33,7 +33,8 @@ switch ( $action ) {
|
|||
echo "<ul>";
|
||||
foreach ( (array) $blogs as $details ) {
|
||||
if ( $details['spam'] == 0 && $details['deleted'] == 0 && $details['archived'] == 0 ) {
|
||||
$siteurl = $wpdb->get_var("SELECT option_value from {$wpdb->base_prefix}{$details['blog_id']}_options WHERE option_name = 'siteurl'");
|
||||
$blog_prefix = $wpdb->get_blog_prefix( $details[ 'blog_id' ] );
|
||||
$siteurl = $wpdb->get_var( "SELECT option_value from {$blog_prefix}options WHERE option_name = 'siteurl'" );
|
||||
echo "<li>$siteurl</li>";
|
||||
$response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=1", array( 'timeout' => 120, 'httpversion' => '1.1' ) );
|
||||
if ( is_wp_error( $response ) )
|
||||
|
|
Loading…
Reference in New Issue