WordPress.org

Make WordPress Core

Changeset 14678


Ignore:
Timestamp:
05/15/10 21:36:38 (4 years ago)
Author:
nacin
Message:

Use upgrade_db instead of step=1 in ms-upgrade-network. Also, no need to check spam/deleted/archived as that is in the query. see #11869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-upgrade-network.php

    r14139 r14678  
    4444        echo "<ul>"; 
    4545        foreach ( (array) $blogs as $details ) { 
    46             if ( $details['spam'] == 0 && $details['deleted'] == 0 && $details['archived'] == 0 ) { 
    47                 $siteurl = get_blog_option( $details['blog_id'], 'siteurl' ); 
    48                 echo "<li>$siteurl</li>"; 
    49                 $response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=1", array( 'timeout' => 120, 'httpversion' => '1.1' ) ); 
    50                 if ( is_wp_error( $response ) ) 
    51                     wp_die( "<strong>Warning!</strong> Problem updating {$siteurl}. Your server may not be able to connect to sites running on it.<br /> Error message: <em>" . $response->get_error_message() ."</em>" ); 
    52                 do_action( 'after_mu_upgrade', $response ); 
    53                 do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); 
    54             } 
     46            $siteurl = get_blog_option( $details['blog_id'], 'siteurl' ); 
     47            echo "<li>$siteurl</li>"; 
     48            $response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=upgrade_db", array( 'timeout' => 120, 'httpversion' => '1.1' ) ); 
     49            if ( is_wp_error( $response ) ) 
     50                wp_die( "<strong>Warning!</strong> Problem updating {$siteurl}. Your server may not be able to connect to sites running on it.<br /> Error message: <em>" . $response->get_error_message() ."</em>" ); 
     51            do_action( 'after_mu_upgrade', $response ); 
     52            do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); 
    5553        } 
    5654        echo "</ul>"; 
Note: See TracChangeset for help on using the changeset viewer.